kexec-tools/0005-dracut-kdump.sh-Save-kexec-dmesg.log-after-failure_a.patch
Philipp Rudo 3fe4cdffbc dracut-kdump.sh: Save kexec-dmesg.log after failure_action
Resolves: RHEL-40817

commit 08649f2487300a077ee5a45ef045dc277c21484d
Author: Philipp Rudo <prudo@redhat.com>
Date:   Thu Jun 20 13:19:30 2024 +0200

    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 <prudo@redhat.com>

Signed-off-by: Philipp Rudo <prudo@redhat.com>
2024-07-09 15:34:53 +02:00

33 lines
982 B
Diff

From afc6ddb781079dfbdf7919803114458907fc4e6a Mon Sep 17 00:00:00 2001
From: Philipp Rudo <prudo@redhat.com>
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 <prudo@redhat.com>
---
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