aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Castillo <jcastillo@redhat.com>2021-01-26 16:20:44 +0100
committerPavel Moravec <pmoravec@redhat.com>2021-01-29 13:58:38 +0100
commita0cb4efb473a553fa034aaa8980635897adf1894 (patch)
tree0a40b6e161273dda9f0d50cb62d83d43e3927a55
parente5d1cb8edc1f53a64c1c21853f7344587ecc19fc (diff)
downloadsos-a0cb4efb473a553fa034aaa8980635897adf1894.tar.gz
[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 <jcastillo@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/report/plugins/kdump.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/kdump.py b/sos/report/plugins/kdump.py
index 4eccb3ff..6bcb7f74 100644
--- a/sos/report/plugins/kdump.py
+++ b/sos/report/plugins/kdump.py
@@ -72,6 +72,7 @@ class RedHatKDump(KDump, RedHatPlugin):
"/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 @@ class RedHatKDump(KDump, RedHatPlugin):
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):