Skip to content

Commit

Permalink
[leapp] improve plugin enablement and add more collected files
Browse files Browse the repository at this point in the history
The `leapp-repository` package was renamed to `leapp-upgrade-elXtoY`
in [1], and while we could list all possible combinations here,
the main `leapp` package should be enough to trigger this plugin

While at it, also enable plugin when /var/lib/leapp exists, as
after an upgrade is performed, users often uninstall the leapp packages,
but it can still be beneficial for SOS to collect data about the fact
that this is a system that was upgraded (and data about the upgrade) and
/var/lib/leapp shows exactly that.

Also include /etc/migration-results and /var/log/leapp/answerfile in
collected files.

[1] oamg/leapp-repository@924c398

Signed-off-by: Evgeni Golov <[email protected]>
  • Loading branch information
evgeni authored and TurboTurtle committed Sep 11, 2024
1 parent 8fab338 commit a946343
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sos/report/plugins/leapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ class Leapp(Plugin, RedHatPlugin):
short_desc = 'Leapp upgrade handling tool'

plugin_name = 'leapp'
packages = ('leapp', 'leapp-repository')
packages = ('leapp',)
files = ('/var/lib/leapp',)

def setup(self):
self.add_copy_spec([
'/etc/migration-results',
'/var/log/leapp/answerfile',
'/var/log/leapp/dnf-debugdata/',
'/var/log/leapp/leapp-preupgrade.log',
'/var/log/leapp/leapp-upgrade.log',
Expand Down

0 comments on commit a946343

Please sign in to comment.