diff options
author | Samuel Thibault <sthibault@debian.org> | 2010-01-10 03:25:53 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2010-01-10 03:25:53 +0000 |
commit | 3aecca56dc00151294acef33fdd95889369a8e53 (patch) | |
tree | aa6511e411557cf95389c65529a7fe61ffbb06ff /debian/local | |
parent | bb98b9b7707e315969962abae2565b23f30e7f46 (diff) |
rename hurd-udeb.runsystem into local/runsystem.gnu, remove isofs.static, move ext2fs.static to /boot
Diffstat (limited to 'debian/local')
-rwxr-xr-x | debian/local/runsystem.gnu | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/local/runsystem.gnu b/debian/local/runsystem.gnu new file mode 100755 index 00000000..8be110f0 --- /dev/null +++ b/debian/local/runsystem.gnu @@ -0,0 +1,44 @@ +#!/bin/sh + +PATH=/bin:/sbin:/usr/bin:/usr/sbin +export PATH + +SHELL=/bin/sh +RUNCOM=/libexec/rc + +# See whether pflocal is setup already, and do so if not (install case) + +if ! test -e /servers/socket/1 && which settrans >/dev/null ; then + settrans -c /servers/socket/1 /hurd/pflocal +fi + +# TODO: +# set up translators, /dev, etc. (./native-install, roughly) + +# Run the rc script. As long as it exits nonzero, punt to single-user. +# After the single-user shell exits, we will start over attempting to +# run rc; but later invocations strip the `autoboot' argument. +until $rc; do + rc=${RUNCOM} + + # Run single-user shell and repeat as long as it dies with a signal. + until ${SHELL} || test $? -lt 128; do + : + done +done + +# Touch the first tty so that the Hurd console is certain to pick it +# and not some random other tty. +touch /dev/tty1 + +# Startup the Hurd console. +console -d vga -d pc_kbd -c /dev/vcs + +echo "Starting d-i's init in 2s, hoping for the best" +sleep 2 + +/bin/init + +echo "d-i init died" + +exit 1 |