aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/sos/plugins/kdump.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/sos/plugins/kdump.py b/src/lib/sos/plugins/kdump.py
index 254f15dd..efdfcfb1 100644
--- a/src/lib/sos/plugins/kdump.py
+++ b/src/lib/sos/plugins/kdump.py
@@ -19,12 +19,11 @@ class kdump(sos.plugintools.PluginBase):
"""Kdump related information
"""
def checkenabled(self):
- if len(self.fileGrep(".* crashkernel=", "/proc/cmdline")) > 0:
- return True
- return False
+ if self.cInfo["policy"].pkgByName("kexec-tools") or os.path.exists("/etc/kdump.conf"):
+ return True
+ return False
def setup(self):
- self.addCopySpec("/etc/kdump.conf")
- self.addCopySpec("/etc/sysconfig/kdump")
+ self.addCopySpec("/etc/kdump.conf")
+ self.addCopySpec("/etc/sysconfig/kdump")
return
-