Bug 2121836

Summary: [RHEL-8] tboot.spec post section must locate grub.cfg and grub modules in correct dirs, add postun section
Product: Red Hat Enterprise Linux 8 Reporter: Tony Camuso <tcamuso>
Component: tbootAssignee: Tony Camuso <tcamuso>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: bdonahue, darcari, mlewando, pjanda
Target Milestone: rcKeywords: Triaged
Target Release: 8.8Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tboot-1.10.5-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:04:51 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 Tony Camuso 2022-08-26 18:23:14 UTC
Description of problem:

The install scriptlet in %post was not choosing the correct
grubenv directory. In RHEL8, the efi and legacy bios grubenv
directories are different. This change assures that the 
correct directory is used for grub.cfg and related modules.
Added a %postun section to cleanup when removing tboot with
dnf erase.

Version-Release number of selected component (if applicable):

All RHEL-8 tboot

Additional info:

The z-stream candidate must be applied to all EUS RHEL-8 as well as RHEL-8.7.

Comment 4 Marta Lewandowska 2022-10-17 12:09:36 UTC
Installed tboot on BIOS and UEFI systems. Installation was successful. Scriptlet chooses the right directory depending on the fw type. Removal was also clean and successful.

Setting Verified: Tested

Comment 8 Marta Lewandowska 2022-11-30 08:50:25 UTC
tboot-1.10.5-2.el8 is in nightly compose RHEL-8.8.0-20221129.4
Moving to VERIFIED

Comment 10 errata-xmlrpc 2023-05-16 09:04:51 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 (tboot 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:2966