diff options
-rw-r--r-- | sos/plugins/dpkg.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sos/plugins/dpkg.py b/sos/plugins/dpkg.py index 50c733e0..5327dbf8 100644 --- a/sos/plugins/dpkg.py +++ b/sos/plugins/dpkg.py @@ -24,7 +24,19 @@ class Dpkg(Plugin, DebianPlugin, UbuntuPlugin): profiles = ('sysmgmt', 'packagemanager') def setup(self): - self.add_copy_spec("/var/log/dpkg.log") self.add_cmd_output("dpkg -l", root_symlink="installed-debs") + if self.get_option("verify"): + self.add_cmd_output("dpkg -V") + self.add_cmd_output("dpkg -C") + self.add_copy_spec([ + "/var/cache/debconf/config.dat", + "/etc/debconf.conf" + ]) + if not self.get_option("all_logs"): + limit = self.get_option("log_size") + self.add_copy_spec_limit("/var/log/dpkg.log", + sizelimit=limit) + else: + self.add_copy_spec("/var/log/dpkg.log*") # vim: et ts=4 sw=4 |