envsubst hack

qemu fix
and more
This commit is contained in:
Zsolt Alföldi
2026-02-28 16:04:02 +01:00
parent f35fc00243
commit afed1b36bc
2 changed files with 17 additions and 16 deletions

View File

@@ -71,12 +71,17 @@ autoinstall:
- path: /home/${TARGET_USER}/first_install.sh
permissions: "0755"
owner: ${TARGET_USER}:${TARGET_USER}
# |
# envsubst hack \ /
# `
content: |
if [[ $EUID -ne 0 ]]; then
if [[ "$${Q}EUID" -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
chown ${TARGET_USER}:${TARGET_USER} -R /home/${TARGET_USER}/nocloud/
netplan generate || true
netplan apply || true
bash -x /home/${TARGET_USER}/nocloud/post-install.sh main
# - path: /etc/himmelblau/himmelblau.conf