Bug 2218563

Summary: sos report does not gather /etc/grub2-efi.cfg when present
Product: Red Hat Enterprise Linux 8 Reporter: jcastran
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Daniel Záležák <dzalezak>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.8CC: agk, dzalezak, jcastillo, jjansky, plambri, sbradley, theute
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-4.5.6-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-30 14:49:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jcastran 2023-06-29 14:14:30 UTC
Description of problem:
sos report does not gather the symlink /etc/grub2-efi.cfg when present


Version-Release number of selected component (if applicable):
sos-4.5.4-1.el8.noarch



Expected results:
if /etc/grub2-efi.cfg is present, we should grab it no matter what.

If a system is legacy, but has this file, grubby default to using this one first in some cases. Therefore we need to know if it's present or not.

Comment 1 Jose Castillo 2023-06-29 14:19:32 UTC
Thank you for the bug report. Are you aware of any password or secret that we need to mask in this file? Or is the format the same as with grub2.cfg?

Comment 2 jcastran 2023-06-29 14:43:07 UTC
The formatting should be the same. 

Checking here, [How to password-protect the GRUB2 boot menu in RHEL 7 and above - Red Hat Customer Portal](https://access.redhat.com/solutions/2253401), any passwords would be in a separate file.

Comment 3 Jose Castillo 2023-06-29 15:04:55 UTC
Upstream PR created here:

https://github.com/sosreport/sos/pull/3294

Comment 5 Daniel Záležák 2023-08-01 16:59:24 UTC
Switched to Tested based on positive results in manual test:

OLD
RHEL-8.9
x86_64
sos-4.5.4-1.el8.noarch

# touch /etc/grub2-efi.cfg
# sos report
# find /var/tmp/sosreport-vm-10-0-187-21-2023-08-01-tejfrra -name grub2-efi.cfg
#

---------------------------------------------------------------------------
NEW
RHEL-8.9
x86_64
sos-4.5.6-1.el8.noarch

# touch /etc/grub2-efi.cfg
# sos report
# find /var/tmp/sosreport-vm-10-0-187-21-2023-08-01-aiirvvl -name grub2-efi.cfg
/var/tmp/sosreport-vm-10-0-187-21-2023-08-01-aiirvvl/etc/grub2-efi.cfg
#

Comment 10 errata-xmlrpc 2023-08-30 14:49:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sos bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:4880