The HUP script is currently performing the reboot as follows:
# Reboot into new OS
847 log "Rebooting into new OS in 5 seconds..."
848 progress 100 "Update successful, rebooting"
849 systemd-run --on-active=5 --quiet --unit=hup-reboot.service systemctl reboot
850 # If the previous reboot command has failed for any reason, let's try differently
851 (sleep 300 && nohup bash -c "reboot --force" > /dev/null 2>&1) &
852 # If the previous 2 reboot commands have failed for any reason, try the Magic SysRq
853 # enable and send reboot request
854 (sleep 600 && echo 1 > /proc/sys/kernel/sysrq && echo b > /proc/sysrq-trigger) &
We should be logging a message if the 300s timeout is reached and a force reboot is required as this might cause data loss and fs corruption.
The HUP script is currently performing the reboot as follows:
We should be logging a message if the 300s timeout is reached and a force reboot is required as this might cause data loss and fs corruption.