|
|
fce3c4 |
From d579fb745de0130132beea214edf85e597ffc54d Mon Sep 17 00:00:00 2001
|
|
|
fce3c4 |
From: Pavel Moravec <pmoravec@redhat.com>
|
|
|
fce3c4 |
Date: Sun, 20 Jan 2019 12:01:47 +0100
|
|
|
fce3c4 |
Subject: [PATCH] [grub2] Enable plugin by grub2-common package also
|
|
|
fce3c4 |
|
|
|
fce3c4 |
Newer Fedora systems, grub2 package is replaced by grub2-common
|
|
|
fce3c4 |
that needs to enable grub2 plugin by default as well.
|
|
|
fce3c4 |
|
|
|
fce3c4 |
Additionally, collect /boot/loader/entries with boot list entries.
|
|
|
fce3c4 |
|
|
|
fce3c4 |
Resolves: #1543
|
|
|
fce3c4 |
|
|
|
fce3c4 |
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
fce3c4 |
---
|
|
|
fce3c4 |
sos/plugins/grub2.py | 3 ++-
|
|
|
fce3c4 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
fce3c4 |
|
|
|
fce3c4 |
diff --git a/sos/plugins/grub2.py b/sos/plugins/grub2.py
|
|
|
fce3c4 |
index ca1da620..9786de44 100644
|
|
|
fce3c4 |
--- a/sos/plugins/grub2.py
|
|
|
fce3c4 |
+++ b/sos/plugins/grub2.py
|
|
|
fce3c4 |
@@ -15,7 +15,7 @@ class Grub2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
|
|
|
fce3c4 |
|
|
|
fce3c4 |
plugin_name = 'grub2'
|
|
|
fce3c4 |
profiles = ('boot',)
|
|
|
fce3c4 |
- packages = ('grub2', 'grub2-efi')
|
|
|
fce3c4 |
+ packages = ('grub2', 'grub2-efi', 'grub2-common')
|
|
|
fce3c4 |
|
|
|
fce3c4 |
def setup(self):
|
|
|
fce3c4 |
self.add_copy_spec([
|
|
|
fce3c4 |
@@ -23,6 +23,7 @@ class Grub2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
|
|
|
fce3c4 |
"/boot/grub2/grub.cfg",
|
|
|
fce3c4 |
"/boot/grub2/grubenv",
|
|
|
fce3c4 |
"/boot/grub/grub.cfg",
|
|
|
fce3c4 |
+ "/boot/loader/entries",
|
|
|
fce3c4 |
"/etc/default/grub",
|
|
|
fce3c4 |
"/etc/grub2.cfg",
|
|
|
fce3c4 |
"/etc/grub.d"
|
|
|
fce3c4 |
--
|
|
|
fce3c4 |
2.17.2
|
|
|
fce3c4 |
|