aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-08-25 12:23:54 +0200
committerPavel Moravec <pmoravec@redhat.com>2019-08-25 12:23:54 +0200
commit857d866f513222d2f0ac9dbd3243fddeed41310f (patch)
treea7c9f5238d29b4ecc24fa9847e6697abc73c0d97
parent1e60189285745480f1cef07ef33bd8a3aab0e1a3 (diff)
downloadsos-857d866f513222d2f0ac9dbd3243fddeed41310f.tar.gz
[kdump] collect kexec_crash_* on all distributions
Collect /sys/kernel/kexec_crash_[size|loaded] on both RedHat and Debian distributions. Resolves: #1742 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/kdump.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sos/plugins/kdump.py b/sos/plugins/kdump.py
index 83b00280..08d3b5fa 100644
--- a/sos/plugins/kdump.py
+++ b/sos/plugins/kdump.py
@@ -18,7 +18,9 @@ class KDump(Plugin):
def setup(self):
self.add_copy_spec([
- "/proc/cmdline"
+ "/proc/cmdline",
+ "/sys/kernel/kexec_crash_loaded",
+ "/sys/kernel/kexec_crash_size"
])
@@ -48,6 +50,7 @@ class RedHatKDump(KDump, RedHatPlugin):
return fs + path
def setup(self):
+ super(RedHatKDump, self).setup()
self.add_copy_spec([
"/etc/kdump.conf",
"/etc/udev/rules.d/*kexec.rules",
@@ -68,6 +71,7 @@ class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
packages = ('kdump-tools',)
def setup(self):
+ super(DebianKDump, self).setup()
self.add_copy_spec([
"/etc/default/kdump-tools"
])