Recent version of dracut will enable initqueue more often, and kdump kernel failed in initqueue, initqueue will start it's own error handler, which will block kdump erorr handler.
So insert a emergency hook to start kdump error handler and do kdump failure_actions.
Signed-off-by: Kairui Song kasong@redhat.com --- dracut-module-setup.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 8211d14..3ffb649 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -1054,6 +1054,7 @@ install() { cp "$moddir/kdump-emergency.target" "$initdir/$systemdsystemunitdir/emergency.target" # Also redirect dracut-emergency to kdump error handler ln_r "$systemdsystemunitdir/emergency.service" "$systemdsystemunitdir/dracut-emergency.service" + inst_hook emergency 00 "$moddir/kdump-error-handler.sh"
# Check for all the devices and if any device is iscsi, bring up iscsi # target. Ideally all this should be pushed into dracut iscsi module