From 0f4df566705c8f4a156bb757d27e3a4abcbbc253 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 23 Feb 2022 08:44:05 -0500 Subject: [PATCH] Update ubuntu.sh --- ct/ubuntu.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index bed96ac1..ae48204c 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -122,6 +122,12 @@ function cleanup() { popd >/dev/null rm -rf $TEMP_DIR } + if [ "$IM" == "1" ]; then + FEATURES="nesting=1,keyctl=1,mknod=1" + else + FEATURES="nesting=1" + fi + TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null @@ -130,7 +136,7 @@ export PCT_OSTYPE=ubuntu export PCT_OSVERSION=21.10 export PCT_DISK_SIZE=2 export PCT_OPTIONS=" - -features nesting=1,keyctl=1,mknod=1 + -features $FEATURES -hostname ubuntu -net0 name=eth0,bridge=vmbr0,ip=dhcp -onboot 1