]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add emergency hook
authorHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 12:05:32 +0000 (14:05 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 12:25:35 +0000 (14:25 +0200)
dracut
modules.d/99base/init

diff --git a/dracut b/dracut
index 2097ab6efc4ac115d702c456dce5e225fe6b3d7f..0170fbb726266de5d29c74f05b089ab1ad709ab2 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -94,7 +94,7 @@ if [[ -f $outfile && ! $force ]]; then
     exit 1
 fi
 
-hookdirs="pre-udev pre-mount pre-pivot mount"
+hookdirs="pre-udev pre-mount pre-pivot mount emergency"
 
 readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
 trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
index d4fc2a462ed5a125442420c9956ee479e4ad947d..ac6a2d86d0d80c7156a7bfb8f7d759a4a1aa2649 100755 (executable)
@@ -7,6 +7,7 @@
 
 emergency_shell()
 {
+    source_all emergency
     echo ; echo
     echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
     echo