commit b9928ae633673432187cb479a991853479c3c3d4
parent c2788e3bf6b16066fb24326c1812ef8bd5afc06b
Author: Dan Callaghan <djc@djc.id.au>
Date: Mon, 13 Jun 2011 11:28:32 +1000
fixme shell, useful for debugging
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/mkinitrd.py b/mkinitrd.py
@@ -142,6 +142,14 @@ edo udevadm settle
edo mdadm --quiet --assemble --scan
edo vgchange -a y
+# pass fixme in kernel args to get a shell for fixing things
+for arg in $cmdline ; do
+ if [[ "$arg" == fixme ]] ; then
+ ( export PS1='fixme$ ' ; bash )
+ break
+ fi
+done
+
# the important bit: mount root, and /usr if defined
root_mounted=""
for arg in $cmdline ; do