From afc6ddb781079dfbdf7919803114458907fc4e6a Mon Sep 17 00:00:00 2001 From: Philipp Rudo Date: Thu, 20 Jun 2024 13:19:30 +0200 Subject: [PATCH 5/7] dracut-kdump.sh: Save kexec-dmesg.log after failure_action The kexec-dmesg.log is only saved after the initial dump attempt but not for the failure_action. So in case the initial dump attempt failed and the failure_action is dump_to_rootfs the kexec-dmesg.log is missing. Fix that by calling save_log also after executing the failure_action. Fixes: 3d70f8b ("logger: save log after all kdump progress finished") Signed-off-by: Philipp Rudo --- dracut-kdump.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut-kdump.sh b/dracut-kdump.sh index 7b3ad7a..2e078c7 100755 --- a/dracut-kdump.sh +++ b/dracut-kdump.sh @@ -579,6 +579,7 @@ fence_kdump_notify() if [ "$1" = "--error-handler" ]; then get_kdump_confs do_failure_action + save_log do_final_action exit $? -- 2.45.2