diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-12-18 14:14:08 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-12-18 14:14:08 +0000 |
commit | 7db643fd50cff86478d11408249228ed01731e2a (patch) | |
tree | 718b21ae60e146baeef17a13963cbb1937a926db /src | |
parent | 6a8662c097a4d91bdfe9633e8ad70c1bce37a961 (diff) | |
download | sos-7db643fd50cff86478d11408249228ed01731e2a.tar.gz |
resolves rhbz#472858
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@539 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/sos/plugins/kdump.py | 11 |
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 - |