summaryrefslogtreecommitdiffstats
path: root/data/stage3.1/init
diff options
context:
space:
mode:
Diffstat (limited to 'data/stage3.1/init')
-rwxr-xr-xdata/stage3.1/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/stage3.1/init b/data/stage3.1/init
index d25d205d..33d5b7b3 100755
--- a/data/stage3.1/init
+++ b/data/stage3.1/init
@@ -40,4 +40,5 @@ done
#/bin/sh
unset BOOT_IMAGE initrd
# new style of pivoting (switch_root or run-init)
-exec /sbin/switch_root -c dev/console /mnt /usr/lib/systemd/systemd
+exec /sbin/switch_root -c /dev/console /mnt /usr/lib/systemd/systemd
+setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'