diff options
author | Ryan Blakley <rblakley@redhat.com> | 2021-02-23 15:36:12 -0500 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-02-24 10:05:38 -0500 |
commit | 328c605adf994f38e0e2491941707361dcb07b6e (patch) | |
tree | 34a9f49e01506f31a3e0b950dc2c5ec54f7d7cd9 | |
parent | a5b1069ae7cacef081a5b6958c61a99c1b1e034a (diff) | |
download | sos-328c605adf994f38e0e2491941707361dcb07b6e.tar.gz |
[rear] Update the rear plugin to collect needed files.
The plugin didn't collect anything under /var/lib/rear,
it also didn't collect anything under /etc/rear/mappings.
Resolves: #2420
Signed-off-by: Ryan Blakley <rblakley@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/rear.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/report/plugins/rear.py b/sos/report/plugins/rear.py index d44e3f0a..16433fc7 100644 --- a/sos/report/plugins/rear.py +++ b/sos/report/plugins/rear.py @@ -20,12 +20,14 @@ class Rear(Plugin, RedHatPlugin): def setup(self): # don't collect recovery ISOs or tar archives self.add_forbidden_path([ - '/var/log/rear/*.iso', - '/var/log/rear/*.tar.gz' + '/var/lib/rear/output/*' ]) self.add_copy_spec([ '/etc/rear/*conf', + '/etc/rear/mappings/*', + '/var/lib/rear/layout/*', + '/var/lib/rear/recovery/*', '/var/log/rear/*log*' ]) |