Bug 1663515 - ReaR broken on UEFI machines due to the lack of the linuxefi grub module
Summary: ReaR broken on UEFI machines due to the lack of the linuxefi grub module
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rear
Version: 8.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Pavel Cahyna
QA Contact: David Jež
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-04 16:21 UTC by Pavel Cahyna
Modified: 2019-08-21 10:07 UTC (History)
6 users (show)

Fixed In Version: rear-2.4-6.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-23 11:55:04 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rear rear issues 1996 0 'None' closed ReaR fails on Fedora 29 with UEFI when grub2-efi-modules are missing 2020-10-26 18:34:48 UTC
Github rear rear pull 2001 0 'None' closed fedora29 grub2-efi-x64-modules does not contain linuxefi module 2020-10-26 18:34:48 UTC

Description Pavel Cahyna 2019-01-04 16:21:06 UTC
On UEFI machines "rear mkbackup" (or just "rear mkrescue" which is faster so more suitable for reproducing) fails with the message
ERROR: Error occurred during grub2-mkimage of BOOTX64.efi

The log shows more details:

grub2-mkimage: error: cannot open `/usr/lib/grub/x86_64-efi/linuxefi.mod': No su
ch file or directory.

Apparently linuxefi.mod was removed in Fedora 29 and this change was ported to RHEL 8, most likely in git commit 2b792b0286b75976deceaf4b329310a90c4aa821 in the grub2 package (version-release 2.02-39). ReaR needs adjusting for that, see the linked upstream pull request.

Note: the linked issue is actually about multiple issues, the original issue was our bz1512493, the relevant discussion is at https://github.com/rear/rear/issues/1996#issuecomment-446389799.

Note for testing: add <key_value key="NETBOOT_METHOD" op="==" value="efigrub"/> to <hostRequires>.

Comment 2 Pavel Cahyna 2019-01-04 16:22:17 UTC
Note: the test case /CoreOS/rear/Sanity/make-backup-and-check-files-on-uefi-system can be used to reproduce.

Comment 5 Brendan Conoboy 2019-01-07 18:12:20 UTC
Reviewed by 8 leads out of band, adding blocker+ due to regression and customer impact.


Note You need to log in before you can comment on or make changes to this bug.