Allow pausing before failure reboot.

This commit is contained in:
Joshua Boniface 2021-12-13 14:09:21 -05:00
parent 78af7006ed
commit ce1b8ac4f6

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
reboot
echo "A fatal error occurred; rebooting in 10 seconds. Press any key to spawn a shell."
if ! read -t 10; then
reboot
fi
;;
*)
# noop