aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/atomichost.py1
-rw-r--r--sos/plugins/rpmostree.py40
2 files changed, 40 insertions, 1 deletions
diff --git a/sos/plugins/atomichost.py b/sos/plugins/atomichost.py
index deecba87..0c1f4026 100644
--- a/sos/plugins/atomichost.py
+++ b/sos/plugins/atomichost.py
@@ -25,7 +25,6 @@ class AtomicHost(Plugin, RedHatPlugin):
return self.policy.in_container()
def setup(self):
- self.add_copy_spec("/etc/ostree/remotes.d")
self.add_cmd_output("atomic host status")
if self.get_option('info'):
diff --git a/sos/plugins/rpmostree.py b/sos/plugins/rpmostree.py
new file mode 100644
index 00000000..3c6872c2
--- /dev/null
+++ b/sos/plugins/rpmostree.py
@@ -0,0 +1,40 @@
+# Copyright (C) 2019 Red Hat, Inc., Jake Hunsaker <jhunsake@redhat.com>
+
+# This file is part of the sos project: https://github.com/sosreport/sos
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions of
+# version 2 of the GNU General Public License.
+#
+# See the LICENSE file in the source distribution for further information.
+
+from sos.plugins import Plugin, RedHatPlugin
+
+
+class Rpmostree(Plugin, RedHatPlugin):
+ """rpm-ostree image/package system"""
+
+ plugin_name = 'rpmostree'
+ packages = ('rpm-ostree',)
+
+ def setup(self):
+ self.add_copy_spec('/etc/ostree/remotes.d/')
+
+ subcmds = [
+ 'status',
+ 'db list',
+ 'db diff',
+ '--version'
+ ]
+
+ self.add_cmd_output(["rpm-ostree %s" % subcmd for subcmd in subcmds])
+
+ units = [
+ 'rpm-ostreed',
+ 'rpm-ostreed-automatic',
+ 'rpm-ostree-bootstatus'
+ ]
+ for unit in units:
+ self.add_journal(unit)
+
+# vim: set et ts=4 sw=4 :