aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-01-20 12:01:47 +0100
committerPavel Moravec <pmoravec@redhat.com>2019-01-21 08:54:57 +0100
commitd579fb745de0130132beea214edf85e597ffc54d (patch)
tree07dbad00256c9972ea278e24b7f9e21bbc7e7431
parent12f12d490866587b254cdf182585529714b7e5bc (diff)
downloadsos-d579fb745de0130132beea214edf85e597ffc54d.tar.gz
[grub2] Enable plugin by grub2-common package also
Newer Fedora systems, grub2 package is replaced by grub2-common that needs to enable grub2 plugin by default as well. Additionally, collect /boot/loader/entries with boot list entries. Resolves: #1543 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/grub2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/grub2.py b/sos/plugins/grub2.py
index ca1da620..9786de44 100644
--- a/sos/plugins/grub2.py
+++ b/sos/plugins/grub2.py
@@ -15,7 +15,7 @@ class Grub2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'grub2'
profiles = ('boot',)
- packages = ('grub2', 'grub2-efi')
+ packages = ('grub2', 'grub2-efi', 'grub2-common')
def setup(self):
self.add_copy_spec([
@@ -23,6 +23,7 @@ class Grub2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/boot/grub2/grub.cfg",
"/boot/grub2/grubenv",
"/boot/grub/grub.cfg",
+ "/boot/loader/entries",
"/etc/default/grub",
"/etc/grub2.cfg",
"/etc/grub.d"