diff --git a/templates/9990-initramfs-tools.sh b/templates/9990-initramfs-tools.sh index d0af227..606cf4e 100755 --- a/templates/9990-initramfs-tools.sh +++ b/templates/9990-initramfs-tools.sh @@ -57,7 +57,13 @@ panic() printf " $@\n\n" # Reboot system - printf "System will reboot in 30 seconds.\n" - sleep 30 - reboot -f + printf "System will reboot in 30 seconds. Press any key to spawn a shell instead.\n" + if ! read -t 30; then + sleep 30 + reboot -f + fi + + # Call original panic + . /scripts/functions + panic "$@" }