diff --git a/proxmox/create-lxc.sh b/proxmox/create-lxc.sh index 9adc274..bacc9f7 100755 --- a/proxmox/create-lxc.sh +++ b/proxmox/create-lxc.sh @@ -161,7 +161,7 @@ pct exec "$VMID" -- sh -c "curl -fsSL '$BOOTSTRAP_URL' \ # is unchanged in practice — anyone who can open the web console already has # `pct enter` on the host. log "enabling tty1 auto-login" -pct exec "$VMID" -- sh -c 'cat > /usr/local/sbin/autologin-root && chmod 0755 /usr/local/sbin/autologin-root' <<'AUTOLOGIN' +pct exec "$VMID" -- sh -c 'mkdir -p /usr/local/sbin && cat > /usr/local/sbin/autologin-root && chmod 0755 /usr/local/sbin/autologin-root' <<'AUTOLOGIN' #!/bin/sh exec /bin/login -f root AUTOLOGIN