Blame SOURCES/sos-bz1887402-kexec-logs.patch

bffc8a
From a0cb4efb473a553fa034aaa8980635897adf1894 Mon Sep 17 00:00:00 2001
bffc8a
From: Jose Castillo <jcastillo@redhat.com>
bffc8a
Date: Tue, 26 Jan 2021 16:20:44 +0100
bffc8a
Subject: [PATCH] [kdump] Gather the file kexec-dmesg.log
bffc8a
bffc8a
Moved the file name from kexec-kdump.log to
bffc8a
the right one, kexec-dmesg.log and
bffc8a
added it to the list of files to gather via
bffc8a
add_copy_spec as per #1546.
bffc8a
bffc8a
Resolves: RHBZ#1817042
bffc8a
Resolves: #2386
bffc8a
bffc8a
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
bffc8a
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/kdump.py | 3 ++-
bffc8a
 1 file changed, 2 insertions(+), 1 deletion(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/kdump.py b/sos/report/plugins/kdump.py
bffc8a
index 4eccb3ffe..6bcb7f74d 100644
bffc8a
--- a/sos/report/plugins/kdump.py
bffc8a
+++ b/sos/report/plugins/kdump.py
bffc8a
@@ -72,6 +72,7 @@ def setup(self):
bffc8a
             "/etc/kdump.conf",
bffc8a
             "/etc/udev/rules.d/*kexec.rules",
bffc8a
             "/var/crash/*/vmcore-dmesg.txt",
bffc8a
+            "/var/crash/*/kexec-dmesg.log",
bffc8a
             "/var/log/kdump.log"
bffc8a
         ])
bffc8a
         try:
bffc8a
@@ -81,7 +82,7 @@ def setup(self):
bffc8a
             path = "/var/crash"
bffc8a
 
bffc8a
         self.add_copy_spec("{}/*/vmcore-dmesg.txt".format(path))
bffc8a
-        self.add_copy_spec("{}/*/kexec-kdump.log".format(path))
bffc8a
+        self.add_copy_spec("{}/*/kexec-dmesg.log".format(path))
bffc8a
 
bffc8a
 
bffc8a
 class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):