unconfigured: continue reboot after 30s if post-hook fails

Wait some time to allow checking for any error output to determine why
the posthook might have failed but then continue with the reboot.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-11-19 18:43:40 +01:00
parent 0b961bc063
commit abe5b80383

View File

@ -255,7 +255,11 @@ elif [ $start_auto_installer -ne 0 ]; then
echo "Starting automatic installation" echo "Starting automatic installation"
if /usr/bin/proxmox-auto-installer </run/automatic-installer-answers; then if /usr/bin/proxmox-auto-installer </run/automatic-installer-answers; then
/usr/bin/proxmox-post-hook </run/automatic-installer-answers if ! /usr/bin/proxmox-post-hook </run/automatic-installer-answers; then
echo "post installation hook failed to execute."
echo "waiting 30s to allow gathering the error before reboot."
sleep 30
fi
fi fi
else else
echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..." echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..."