]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/dracut-module/run-installer.sh
installer: Only drop to a debug shell after a segmentation fault
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
index 53f7cd331479478b546d29d5112c0281b6051d8d..b62cfa996a71caa8f6c8370418c810059a8ee611 100644 (file)
@@ -3,6 +3,12 @@
 # IPFire Installer RC
 #
 
+# Enable Unicode
+echo -en '\033%G' && kbd_mode -u
+
+# Load default console font
+setfont LatArCyrHeb-16
+
 # Silence the kernel
 echo >/proc/sys/kernel/printk "1 4 1 7"
 echo -n -e "\033[9;0]"
@@ -13,8 +19,14 @@ 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
+       139)
+               echo "The installer has crashed. You will be dropped to a debugging shell"
+               /bin/bash --login
+               ;;
+esac
 
 # Reboot the system
 /shutdown reboot