From 90ec2fa8021209557e1845c8eb7ce39152d1ecf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 14 Dec 2020 12:53:57 +0100 Subject: [PATCH] rootfs: Don't fallthrough in the docker_extra_args() switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Falling through the switch cases in docker_extra_args() looks like a typo and causes issues when building with podman, as `--security-opt apparmor=unconfinded" shouldn't be passed if Apparmor is no enable on the system. Fixes: #1241 Signed-off-by: Fabiano FidĂȘncio --- tools/osbuilder/rootfs-builder/rootfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osbuilder/rootfs-builder/rootfs.sh b/tools/osbuilder/rootfs-builder/rootfs.sh index dc902f57b0..a10907bc08 100755 --- a/tools/osbuilder/rootfs-builder/rootfs.sh +++ b/tools/osbuilder/rootfs-builder/rootfs.sh @@ -200,7 +200,7 @@ docker_extra_args() args+=" --cap-add SYS_CHROOT" # debootstrap needs to create device nodes to properly function args+=" --cap-add MKNOD" - ;& + ;; suse) # Required to mount inside a container args+=" --cap-add SYS_ADMIN"