From 5c7046f2fc15699a8b7cbb5f4bfb9a7468372a25 Mon Sep 17 00:00:00 2001 From: Simo Leone Date: Wed, 10 Oct 2007 22:42:50 -0500 Subject: 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 --- hooks/archiso | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hooks') diff --git a/hooks/archiso b/hooks/archiso index f6c7f86..43bbdad 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -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. -- cgit v1.2.2