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
commit5c7046f2fc15699a8b7cbb5f4bfb9a7468372a25 (patch)
tree196ad9214c6c69eda24bb6fdbb1005032bf8f8b8 /hooks
parent8ada60b1750ece23a7e5eaed714fbfdac8756b1c (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.