[arch-projects] [mkinitcpio][PATCH 16/26] init: support breaks before and after mounting root
Dave Reisner
d at falconindy.com
Mon Sep 26 21:22:17 EDT 2011
Add in 'premount' and 'postmount' as trigger conditions, but also leave
in the old 'y' value as a synonym for premount.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
init | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/init b/init
index 8c8709c..a0e082e 100644
--- a/init
+++ b/init
@@ -74,8 +74,8 @@ if [ -e "/hooks" ]; then
done
fi
-if [ "${break}" = "y" ]; then
- echo ":: Break requested, type 'exit' to resume operation"
+if [ "${break}" = "y" ] || [ "${break}" = "premount" ]; then
+ echo ":: Pre-mount break requested, type 'exit' to resume operation"
launch_interactive_shell
fi
@@ -100,6 +100,11 @@ elif [ ! -x "/new_root${init}" ]; then
launch_interactive_shell --exec
fi
+if [ "${break}" = "postmount" ]; then
+ echo ":: Post-mount break requested, type 'exit' to resume operation"
+ launch_interactive_shell
+fi
+
# Stop udevd if is running
if [ "${udevd_running}" -eq 1 ]; then
udevadm control --exit
--
1.7.6.4
More information about the arch-projects
mailing list