diff --git a/dracut b/dracut index 2097ab6e..0170fbb7 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 d4fc2a46..ac6a2d86 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