]> git.ipfire.org Git - ipfire-2.x.git/blob - src/installer/dracut-module/run-installer.sh
Merge remote-tracking branch 'origin/next' into install-raid
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
1 #!/bin/sh
2 #
3 # IPFire Installer RC
4 #
5
6 # Silence the kernel
7 echo >/proc/sys/kernel/printk "1 4 1 7"
8 echo -n -e "\033[9;0]"
9
10 echo "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
14 echo "Loading Installer..."
15 /bin/bash --login -c "/usr/bin/installer /dev/tty2"
16 ret=$?
17
18 case "${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 ;;
26 esac
27
28 # Reboot the system
29 /shutdown reboot