Update setup

Allow the end user to delay reboot but make it clear that a reboot is necessary
This commit is contained in:
Aaron Mason
2025-10-28 09:51:51 +11:00
committed by GitHub
parent a60e53cb92
commit bf73d13ffe

6
setup
View File

@@ -357,7 +357,9 @@ setup_prerequisites() {
[ -f /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
touch /etc/pve/qemu-server/.osx-proxmox
update-grub >>"$logfile" 2>&1 || log_and_exit "Failed to update GRUB" "$logfile"
display_and_log "Prerequisites setup complete. Rebooting in 15 seconds..." "$logfile"
display_and_log "Prerequisites setup complete. A reboot is necessary to apply the required changes. Press enter to reboot or Ctrl+C if you intend to reboot later." "$logfile"
read noop
display_and_log "Enter pressed. Rebooting in 15 seconds..." "$logfile"
sleep 15 && reboot
}
@@ -1458,4 +1460,4 @@ fi
sleep 4
OSX_PLATFORM=$(detect_cpu_platform)
[[ ! -e /etc/pve/qemu-server/.osx-proxmox ]] && setup_prerequisites
main_menu
main_menu