aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-13 00:25:19 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-13 00:25:19 +0000
commit40caaa1606094d212d640f00b6800b47a024ffce (patch)
tree1860880084df14103b37c3619f7085f42806dd9b
parenta05422555abca9e51b44550d3939c4382b4d1b83 (diff)
downloadsos-40caaa1606094d212d640f00b6800b47a024ffce.tar.gz
Change collection of /lib/systemd
Since /lib/systemd contains binaries don't collect the whole thing. Grab /lib/systemd/sysem and /lib/systemd/user as these contain unit files and symlinks but just take a directory listing for /lib/systemd itself and the other subdirectories.
-rw-r--r--sos/plugins/systemd.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py
index 15088f63..d6eeead9 100644
--- a/sos/plugins/systemd.py
+++ b/sos/plugins/systemd.py
@@ -36,9 +36,14 @@ class systemd(Plugin, RedHatPlugin):
self.collectExtOutput("journalctl --verify")
self.collectExtOutput("journalctl --all --this-boot --no-pager")
self.collectExtOutput("journalctl --all --this-boot --no-pager -o verbose")
+ self.collectExtOutput("ls -l /lib/systemd")
+ self.collectExtOutput("ls -l /lib/systemd/system-shutdown")
+ self.collectExtOutput("ls -l /lib/systemd/system-generators")
+ self.collectExtOutput("ls -l /lib/systemd/user-generators")
self.addCopySpecs(["/etc/systemd",
- "/lib/systemd",
+ "/lib/systemd/system",
+ "/lib/systemd/user",
"/etc/vconsole.conf",
"/etc/yum/protected.d/systemd.conf"])