diff options
-rw-r--r-- | sos/report/plugins/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py index b48909be..76341a04 100644 --- a/sos/report/plugins/__init__.py +++ b/sos/report/plugins/__init__.py @@ -3305,7 +3305,8 @@ class Plugin(): self.add_service_status(service) self.add_journal(service) for kmod in self.kernel_mods: - self.add_cmd_output(f"modinfo {kmod}") + if self.is_module_loaded(kmod): + self.add_cmd_output(f"modinfo {kmod}") def setup(self): """Collect the list of files declared by the plugin. This method |