summaryrefslogtreecommitdiffstats
path: root/data/stage3.1/init
diff options
context:
space:
mode:
authorMichael Neves2012-11-08 18:08:17 +0100
committerMichael Neves2012-11-08 18:08:17 +0100
commit11ecc4883c01700d3142cec813363f7016f06ecd (patch)
tree3935bf9b28d600423d4928755cb2f256279852e3 /data/stage3.1/init
parentbuild_core (diff)
downloadtm-scripts-11ecc4883c01700d3142cec813363f7016f06ecd.tar.gz
tm-scripts-11ecc4883c01700d3142cec813363f7016f06ecd.tar.xz
tm-scripts-11ecc4883c01700d3142cec813363f7016f06ecd.zip
missing ld-linux fix
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'