]> git.ipfire.org Git - ipfire-2.x.git/blame - src/installer/dracut-module/run-installer.sh
Merge remote-tracking branch 'origin/seventeen' into seventeen
[ipfire-2.x.git] / src / installer / dracut-module / run-installer.sh
CommitLineData
5fca8d27 1#!/bin/sh
6cf9e770
AF
2#
3# IPFire Installer RC
4#
5
c5a5b13e
MT
6unattended=0
7if grep -q "installer.unattended" /proc/cmdline; then
8 unattended=1
9fi
10
e6f71226
MT
11# Enable Unicode
12echo -en '\033%G' && kbd_mode -u
13
14# Load default console font
15setfont LatArCyrHeb-16
16
5fca8d27 17# Silence the kernel
6cf9e770
AF
18echo >/proc/sys/kernel/printk "1 4 1 7"
19echo -n -e "\033[9;0]"
20
6cf9e770
AF
21echo "Starting shells on tty2 and tty3 ..."
22/usr/local/bin/iowrap /dev/tty2 /bin/bash &
23/usr/local/bin/iowrap /dev/tty3 /bin/bash &
24
25echo "Loading Installer..."
5fca8d27 26/bin/bash --login -c "/usr/bin/installer /dev/tty2"
39a36d7d 27ret=$?
5fca8d27 28
39a36d7d 29case "${ret}" in
a046e8a6 30 139)
39a36d7d
MT
31 echo "The installer has crashed. You will be dropped to a debugging shell"
32 /bin/bash --login
33 ;;
34esac
6cf9e770 35
c5a5b13e
MT
36# Poweroff after an unattended installation
37if [ "${unattended}" = "1" ]; then
38 /shutdown poweroff
39fi
40
5fca8d27
MT
41# Reboot the system
42/shutdown reboot