]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/dracut-module/run-installer.sh
installer: Don't try to install /etc/hosts which does not exist
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
index 53f7cd331479478b546d29d5112c0281b6051d8d..1a7bd137214afdcf020b98510fc2e5ba9e303a46 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,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