|
|
@ -109,7 +109,7 @@ EOF |
|
|
|
lxc config set "$CONTAINER" environment.PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/miaou-bash/tools:/TOOLBOX -q |
|
|
|
|
|
|
|
if [[ "$OPTION_NESTING" == true ]]; then |
|
|
|
lxc config set $CONTAINER security.nesting true -q |
|
|
|
lxc config set "$CONTAINER" security.nesting true -q |
|
|
|
lxc config device add "$CONTAINER" miaou disk source=/opt/miaou path=/opt/miaou -q |
|
|
|
fi |
|
|
|
|
|
|
@ -124,6 +124,7 @@ EOF |
|
|
|
|
|
|
|
# purge cloud-init after success |
|
|
|
lxc exec "$CONTAINER" -- systemd-run -q -p After=cloud-final.service -p Type=oneshot --no-block bash -c '\ |
|
|
|
sleep 0.2 &&\ |
|
|
|
cloud-init status --wait &&\ |
|
|
|
cp /var/lib/cloud/data/status.json /root/cloud-status.json &&\ |
|
|
|
systemctl stop cloud-{config,final,init-local,init}.service &&\ |
|
|
|