Blob Blame History Raw
From d579fb745de0130132beea214edf85e597ffc54d Mon Sep 17 00:00:00 2001
From: Pavel Moravec <pmoravec@redhat.com>
Date: Sun, 20 Jan 2019 12:01:47 +0100
Subject: [PATCH] [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>
---
 sos/plugins/grub2.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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"
-- 
2.17.2