Can now break out of archiso hook into dash

Usually initcpio's init takes care of this, but
it never executes that far, so this is copypasta.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2007-10-10 22:42:50 -05:00
parent 8ada60b175
commit 5c7046f2fc

View File

@ -38,6 +38,12 @@ run_hook ()
echo 1 > /proc/sys/dev/cdrom/autoeject
fi
if [ "${break}" = "y" ]; then
echo ":: Break requested, type 'exit' to resume operation"
echo " NOTE: klibc contains no 'ls' binary, use 'echo *' instead"
PS1="ramfs$ " /bin/sh -i
fi
udevpid=$(/bin/minips -C udevd -o pid=)
[ "x${udevpid}" != "x" ] && /bin/kill -9 $udevpid 2>&1 >/dev/null
#Yep, we're bailing out here. We don't need kinit.