Blame SOURCES/sos-bz1026959-collect-saved-vmcore-dmesg.patch

6b17e9
commit 557a5397304327abe2039229a2bd23bb489ea879
6b17e9
Author: Bryn M. Reeves <bmr@redhat.com>
6b17e9
Date:   Tue Aug 13 18:46:47 2013 +0100
6b17e9
6b17e9
    Collect saved vmcore-dmesg.txt files in kdump plug-in
6b17e9
    
6b17e9
    Recent versions of kexec-utils automatically generate a text
6b17e9
    file containing the dmesg buffer of the captured vmcore.
6b17e9
    
6b17e9
    This is useful for first-fault debugging and should be included.
6b17e9
    
6b17e9
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
6b17e9
6b17e9
diff --git a/sos/plugins/kdump.py b/sos/plugins/kdump.py
6b17e9
index 73e5d5e..81ce574 100644
6b17e9
--- a/sos/plugins/kdump.py
6b17e9
+++ b/sos/plugins/kdump.py
6b17e9
@@ -23,7 +23,7 @@ class KDump(Plugin):
6b17e9
     def setup(self):
6b17e9
         self.add_copy_specs([
6b17e9
             "/proc/cmdline"
6b17e9
-            ])
6b17e9
+        ])
6b17e9
 
6b17e9
 class RedHatKDump(KDump, RedHatPlugin):
6b17e9
     """Kdump related information for Red Hat distributions
6b17e9
@@ -35,7 +35,9 @@ class RedHatKDump(KDump, RedHatPlugin):
6b17e9
     def setup(self):
6b17e9
         self.add_copy_specs([
6b17e9
             "/etc/kdump.conf",
6b17e9
-            "/etc/udev/rules.d/*kexec.rules"])
6b17e9
+            "/etc/udev/rules.d/*kexec.rules",
6b17e9
+            "/var/crash/*/vmcore-dmesg.txt"
6b17e9
+        ])
6b17e9
 
6b17e9
 class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
6b17e9
     """Kdump related information for Debian distributions
6b17e9
@@ -47,4 +49,4 @@ class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
6b17e9
     def setup(self):
6b17e9
         self.add_copy_specs([
6b17e9
             "/etc/default/kdump-tools"
6b17e9
-            ])
6b17e9
+        ])