From 31dd738e9ac2f09d07a8a87b547cab840a8cf2a4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 17 Mar 2022 08:08:02 -0400 Subject: [PATCH] Update docker.sh --- ct/docker.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ct/docker.sh b/ct/docker.sh index 7a46c1ea..918d9a03 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -206,8 +206,14 @@ function cleanup() { popd >/dev/null rm -rf $TEMP_DIR } - if [ "$IM" == "1" ]; then + if [ "$IM" == "1" ] && [ "$STORAGE_DRIVER" == " " ]; then FEATURES="nesting=1,keyctl=1" + elif + [ "$IM" == "1" ] && [ "$STORAGE_DRIVER" == "fuse" ]; then + FEATURES="nesting=1,keyctl=1,fuse=1" + elif + [ "$IM" == "0" ] && [ "$STORAGE_DRIVER" == "fuse" ]; then + FEATURES="nesting=1,keyctl=1,fuse=1" else FEATURES="nesting=1" fi @@ -247,7 +253,6 @@ pct start $CTID if [ "$STORAGE_TYPE" == "zfspool" ] && [ "$STORAGE_DRIVER" == "fuse" ]; then pct push $CTID fuse-overlayfs /usr/local/bin/fuse-overlayfs -perms 755 info "${BL}Using fuse-overlayfs.${CL}" - info "${BL}Select FUSE in Options >> Features.${CL}" fi echo -e "${CM}${CL} \r"