mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
rootfs: Don't fallthrough in the docker_extra_args() switch
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 <fidencio@redhat.com>
This commit is contained in:
parent
a6d52d3da1
commit
90ec2fa802
@ -200,7 +200,7 @@ docker_extra_args()
|
|||||||
args+=" --cap-add SYS_CHROOT"
|
args+=" --cap-add SYS_CHROOT"
|
||||||
# debootstrap needs to create device nodes to properly function
|
# debootstrap needs to create device nodes to properly function
|
||||||
args+=" --cap-add MKNOD"
|
args+=" --cap-add MKNOD"
|
||||||
;&
|
;;
|
||||||
suse)
|
suse)
|
||||||
# Required to mount inside a container
|
# Required to mount inside a container
|
||||||
args+=" --cap-add SYS_ADMIN"
|
args+=" --cap-add SYS_ADMIN"
|
||||||
|
Loading…
Reference in New Issue
Block a user