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