Bug 2492140
| Summary: | Image builds fail with grub2-2.12-65.fc45 due to scriptlets no longer copying expected EFI files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
| Component: | grub2 | Assignee: | Nicolas Frayer <nfrayer> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | bcl, josherna, lkundrak, lsandova, mlewando, nfrayer, ngompa13, pjones, rapneset, sdevlieg |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | openqa | ||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-06-26 08:51:21 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
Adam Williamson
2026-06-24 11:38:08 UTC
Note the update failed tests and was correctly gated so this isn't a "live" issue in Rawhide right now, but we do need to figure out what the right thing to do is here so lsandoval can move forward. Would the issue would be that it's not an actual mount point on these builds? Can we just do:
diff --git a/grub2.spec b/grub2.spec
index 8665d22..fd39f72 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -436,10 +436,8 @@ fi
# On image mode, bootupd takes care of installing bootloader updates to the ESP
if [[ ! -e "/run/ostree-booted" ]]; then
- # Check if /boot/efi is actually mounted before cp
- if ! mountpoint -q ${ESP_PATH}; then
- : # no ESP mounted, nothing to do
- else
+ # Check if /boot/efi actually exists before cp
+ if [ -d "${EFI_ESP_DIR}" ]; then
cp -a ${EFI_DIR}/. ${EFI_ESP_DIR} || :
fi
fi
Though - the cp call does already swallow any errors anyway so seems like removing the check altogether is valid.
Checking for a mountpoint is wrong and as adam noted will break things like lorax and some of the image-builder types that install to a chroot. Packagers need to remember that their packages aren't always being installed on a running system, sometime they are being used inside a chroot-ish environment. (In reply to Brian Lane from comment #3) > Checking for a mountpoint is wrong and as adam noted will break things like > lorax and some of the image-builder types that install to a chroot. > > Packagers need to remember that their packages aren't always being installed > on a running system, sometime they are being used inside a chroot-ish > environment. Lesson learnt. We basically uncovered something already wrong but unnoticed because this mount point check was in other place, not impacting .efi files installation. PR on the way https://src.fedoraproject.org/rpms/grub2/pull-request/236 https://bodhi.fedoraproject.org/updates/FEDORA-2026-c920f500a3 passes tests and went out, so I guess we're good here. Thanks. Please edit a fixed build into the F44 update too, or create a new F44 update (which will automatically obsolete the old one). (In reply to Adam Williamson from comment #5) > https://bodhi.fedoraproject.org/updates/FEDORA-2026-c920f500a3 passes tests > and went out, so I guess we're good here. Thanks. Please edit a fixed build > into the F44 update too, or create a new F44 update (which will > automatically obsolete the old one). I have done the edit part on F44. Thanks Adam, Brian, Rolv! |