diff options
-rwxr-xr-x | init | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -99,9 +99,12 @@ setup_encrypted() { # Notify user and wait for input on failure if [ "$?" -gt 0 ]; then - echo "An error was detected mounting the encrypted root." >&2 - echo "Pausing. Press enter to continue." >&2 - read + # Ensure decryption was successful, it not, drop to debug shell and reboot once done. + printf 'ERROR: Could not decrypt device\n' >&2 + printf 'Dropping to debug shell (will automatically reboot on exit).\n' >&2 + /bin/bash --norc + printf 'Rebooting\n' >&2 + init 6 fi # Probe the new crypto device for an additional partition table |