From e14ee3c653a61bd7ee755c9a66b7fa78eabccf55 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 19 Dec 2020 02:58:30 +0100 Subject: [PATCH] launch the container with nesting and privilege --- build_base_lxc.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build_base_lxc.sh b/build_base_lxc.sh index 8ca7dda..876a9b4 100755 --- a/build_base_lxc.sh +++ b/build_base_lxc.sh @@ -9,10 +9,7 @@ function rebuild_base_lxc() set -x lxc info $LXC_BASE >/dev/null && lxc delete $LXC_BASE --force - lxc launch images:debian/$DIST/$ARCH $LXC_BASE - lxc config set $LXC_BASE security.privileged true - lxc config set $LXC_BASE security.nesting true # Need this for apparmor for some reason - lxc restart $LXC_BASE + lxc launch images:debian/$DIST/$ARCH $LXC_BASE -c security.privileged=true -c security.nesting=true sleep 5 IN_LXC="lxc exec $LXC_BASE --"