add emergency hook

master
Harald Hoyer 2009-05-20 14:05:32 +02:00
parent ea62f0eb2a
commit a4aee9e573
2 changed files with 2 additions and 1 deletions

2
dracut
View File

@ -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.

View File

@ -7,6 +7,7 @@

emergency_shell()
{
source_all emergency
echo ; echo
echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
echo