add emergency hook
parent
ea62f0eb2a
commit
a4aee9e573
2
dracut
2
dracut
|
|
@ -94,7 +94,7 @@ if [[ -f $outfile && ! $force ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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)
|
readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
|
||||||
trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
|
trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
emergency_shell()
|
emergency_shell()
|
||||||
{
|
{
|
||||||
|
source_all emergency
|
||||||
echo ; echo
|
echo ; echo
|
||||||
echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
|
echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue