installer: Drop user to an emergency shell if the installer crashes.

This commit is contained in:
Michael Tremer
2014-08-12 14:58:13 +02:00
parent d2f993a7dd
commit 39a36d7d73

View File

@@ -13,8 +13,17 @@ echo "Starting shells on tty2 and tty3 ..."
echo "Loading Installer..."
/bin/bash --login -c "/usr/bin/installer /dev/tty2"
ret=$?
sleep 60
case "${ret}" in
0)
# The installer has finished without a problem.
;;
*)
echo "The installer has crashed. You will be dropped to a debugging shell"
/bin/bash --login
;;
esac
# Reboot the system
/shutdown reboot