Allow pausing before failure reboot.

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent ccf3c63606
commit f9fa2440ea
1 changed files with 4 additions and 3 deletions

View File

@ -520,9 +520,10 @@ cleanup() {
if [[ -z ${DONE} ]]; then
case ${install_option} in
on)
echo "A fatal error occurred; rebooting in 10 seconds."
sleep 10
echo "A fatal error occurred; rebooting in 10 seconds. Press any key to spawn a shell."
if ! read -t 10; then
reboot
fi
;;
*)
# noop