Skip to content

Fix RHEL 10.1 installer ISO build failures (HMS-10568)#59

Merged
lzap merged 4 commits intoosbuild:mainfrom
thozza:fix-installer
Apr 27, 2026
Merged

Fix RHEL 10.1 installer ISO build failures (HMS-10568)#59
lzap merged 4 commits intoosbuild:mainfrom
thozza:fix-installer

Conversation

@thozza
Copy link
Copy Markdown
Member

@thozza thozza commented Apr 27, 2026

The osbuild-composer org.osbuild.grub2.iso stage fails with [Errno 2] No such file or directory: '/boot/efi/EFI/redhat/shimx64.efi' because bootc base images ship with an empty /boot — bootupd moves bootloader files to /usr/lib/bootupd/updates during image creation. Fix this by reinstalling shim-x64 so the required EFI binaries are present under /boot/efi/EFI, fulfilling the container-native ISO contract. Also correct the ISO metadata and kickstart config for RHEL 10.1.

Architectural Changes

Replace the previous commented-out workaround (manually copying from /usr/lib/efi) with a dnf reinstall shim-x64 approach. This is cleaner because it lets the RPM scriptlets place files in their canonical locations. A comment notes this will need to change once the Fedora BootLoaderUpdatesPhase1 change lands upstream.

Key Changes

  • Reinstall shim-x64 to populate /boot/efi/EFI with required EFI binaries, fixing the org.osbuild.grub2.iso stage failure
  • Remove the old commented-out cp -rva /usr/lib/efi workaround (issue #50)
  • Update ISO label and GRUB boot entries from CentOS Stream 10 to RHEL 10.1
  • Switch Anaconda kickstart --source-imgref to local-storage:// and drop the now-redundant --target-imgref
  • Use ostreecontainer command in the kickstart, instead of the bootc command, which is not available in RHEL 10.1.

thozza added 3 commits April 27, 2026 12:45
bootc base images ship with an empty /boot because bootupd moves
bootloader files to /usr/lib/bootupd/updates during image creation.
Reinstall shim-x64 so that the required EFI binaries are present in
/boot/efi/EFI, fulfilling the container-native ISO contract.

This replaces the previous workaround (copying from /usr/lib/efi).

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Also drop the --target-imgref. Per upstream documentation, it is not
needed in case the ref is the same as the --source-imgref.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Comment thread rhel-10.1-installer Outdated
The bootc kickstart command is available only since RHEL-10.2. Use
ostreecontainer command instead.

Thanks to Ondrej Budai for suggesting this.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
@thozza thozza requested a review from ondrejbudai April 27, 2026 11:37
@lzap lzap merged commit 36c3071 into osbuild:main Apr 27, 2026
1 of 11 checks passed
@thozza thozza deleted the fix-installer branch April 27, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants