Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2007-10-10 22:42:50 -0500
committerSimo Leone <simo@archlinux.org>2007-10-10 22:42:50 -0500
commit6b0c16b4bdf7a172ce3b28a2d61b4799f56975b9 (patch)
tree68a07164a2db0ba5e1dffc077ca91b1ba7a00f80 /hooks
parent96d2ffefa87a0db2d892c1dffd1a68f5310e0a88 (diff)
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>
Diffstat (limited to 'hooks')
-rw-r--r--hooks/archiso6
1 files changed, 6 insertions, 0 deletions
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.