Update homeassistant.sh

This commit is contained in:
tteckster 2022-02-23 08:40:05 -05:00 committed by GitHub
parent 3e975df752
commit f53385c575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,12 @@ function cleanup() {
popd >/dev/null popd >/dev/null
rm -rf $TEMP_DIR rm -rf $TEMP_DIR
} }
if [ "$IM" == "1" ]; then
FEATURES="nesting=1,keyctl=1,mknod=1"
else
FEATURES="nesting=1"
fi
TEMP_DIR=$(mktemp -d) TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null pushd $TEMP_DIR >/dev/null
@ -129,7 +135,7 @@ export PCT_OSTYPE=debian
export PCT_OSVERSION=11 export PCT_OSVERSION=11
export PCT_DISK_SIZE=8 export PCT_DISK_SIZE=8
export PCT_OPTIONS=" export PCT_OPTIONS="
-features nesting=1,keyctl=1,mknod=1 -features $FEATURES
-hostname homeassistant -hostname homeassistant
-net0 name=eth0,bridge=vmbr0,ip=dhcp -net0 name=eth0,bridge=vmbr0,ip=dhcp
-onboot 1 -onboot 1