From: Harald Hoyer Date: Wed, 20 May 2009 12:05:32 +0000 (+0200) Subject: add emergency hook X-Git-Tag: 0.1~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4aee9e5737cd602bacb82e68bdc83b4146c5960;p=thirdparty%2Fdracut.git add emergency hook --- diff --git a/dracut b/dracut index 2097ab6ef..0170fbb72 100755 --- 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. diff --git a/modules.d/99base/init b/modules.d/99base/init index d4fc2a462..ac6a2d86d 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -7,6 +7,7 @@ emergency_shell() { + source_all emergency echo ; echo echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!" echo