From a18308887d7310828105c3180b694ad5bdb31dba Mon Sep 17 00:00:00 2001 From: Daniel Clavijo Coca Date: Wed, 10 Mar 2021 03:18:32 -0600 Subject: [PATCH] B OpenNebula/one#5086: lxd market auto context incompatible with nosuid, nodev (#931) --- src/mad/sh/create_container_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mad/sh/create_container_image.sh b/src/mad/sh/create_container_image.sh index d766d46050..1cedf291a2 100755 --- a/src/mad/sh/create_container_image.sh +++ b/src/mad/sh/create_container_image.sh @@ -49,8 +49,8 @@ esac # try first to mount with the fuse2fs command and if that fails fallback to the # regular mount -if ! fuse2fs -o noexec,nodev,nosuid $tmp_dir/$id.raw $tmp_dir/$id >/dev/null 2>&1 ; then - mount -o noexec,nodev,nosuid $tmp_dir/$id.raw $tmp_dir/$id +if ! fuse2fs -o nosuid $tmp_dir/$id.raw $tmp_dir/$id >/dev/null 2>&1 ; then + mount -o nosuid $tmp_dir/$id.raw $tmp_dir/$id fi chown $USER:$GROUP $tmp_dir/$id