[rhcos-4.6] buildextend-live: drop shim fallback.efi from ISO #2439
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
UEFI boots from removable media via the arch-specific default EFI application in
/EFI/BOOT
. When booted that way, shim chains to fallback.efi if it exists, and fallback.efi creates an EFI boot entry. That's not appropriate for removable media boot, since the media will probably never be present again. If a TPM is present, fallback.efi will additionally reboot the machine, and on some machines this leads to boot loops. Instead of all this, we just want shim to chain directly to GRUB.Drop fallback.efi and its associated CSV from the EFI image. Replace it with a copy of GRUB in the right place for shim to chain to it.
Unlike 4.7+, the 4.6 live ISO doesn't attempt to support UEFI booting when copied to a USB stick (except for firmware that can do so via El Torito). Fixing this is a small change, so for consistency with newer releases, backport the commits to do so. Then apply a lightweight backport of #2435.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2004449