]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - src/installer/dracut-module/run-installer.sh
installer: Drop user to an emergency shell if the installer crashes.
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
... / ...
CommitLineData
1#!/bin/sh
2#
3# IPFire Installer RC
4#
5
6# Silence the kernel
7echo >/proc/sys/kernel/printk "1 4 1 7"
8echo -n -e "\033[9;0]"
9
10echo "Starting shells on tty2 and tty3 ..."
11/usr/local/bin/iowrap /dev/tty2 /bin/bash &
12/usr/local/bin/iowrap /dev/tty3 /bin/bash &
13
14echo "Loading Installer..."
15/bin/bash --login -c "/usr/bin/installer /dev/tty2"
16ret=$?
17
18case "${ret}" in
19 0)
20 # The installer has finished without a problem.
21 ;;
22 *)
23 echo "The installer has crashed. You will be dropped to a debugging shell"
24 /bin/bash --login
25 ;;
26esac
27
28# Reboot the system
29/shutdown reboot