diff options
-rw-r--r-- | sos/report/plugins/kernel.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py index 1fafdfa5..f9c6dfeb 100644 --- a/sos/report/plugins/kernel.py +++ b/sos/report/plugins/kernel.py @@ -7,6 +7,7 @@ # See the LICENSE file in the source distribution for further information. from sos.report.plugins import Plugin, IndependentPlugin, PluginOpt +from sos.policies.distros.redhat import RedHatPolicy import glob @@ -42,6 +43,11 @@ class Kernel(Plugin, IndependentPlugin): ] def setup(self): + # RedHat distributions can deliver kernel in RPM named either 'kernel' + # or 'kernel-redhat', so we must verify both + if isinstance(self.policy, RedHatPolicy): + self.verify_packages = ('kernel$', 'kernel-redhat$') + # compat self.add_cmd_output("uname -a", root_symlink="uname", tags="uname") self.add_cmd_output("lsmod", root_symlink="lsmod", tags="lsmod") |