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

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