ISO El Torito boot image must be a FAT filesystem image, not raw BOOTX64.EFI #34
Labels
No labels
harness
proj-core-console
proj-core-demo
proj-core-edit
proj-core-init
proj-core-lib
proj-core-login
proj-core-res
proj-core-sh
proj-core-theme
proj-docs
proj-extra-calc
proj-extra-code
proj-extra-playbook
proj-extra-sheets
proj-harness
proj-os
residual
tier-0-trivial
tier-1-easy
tier-2-medium
tier-3-hard
tier-4-major
tier-5-epic
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
residual/.agent#34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ISO built by res-os-builder was not detected as a boot device by UEFI firmware — OVMF, VirtualBox, and Hyper-V all refused it. BIOS boot failing is expected (the builder is UEFI-only by design); UEFI failing was the bug.
What was wrong
The El Torito boot image passed to xorriso was the raw BOOTX64.EFI PE binary (xorriso -e EFI/BOOT/BOOTX64.EFI). The UEFI El Torito boot image for platform 0xEF must be a FAT filesystem image: the firmware mounts it and loads \EFI\BOOT\BOOTX64.EFI from inside it. A raw PE is not a filesystem, so no UEFI firmware will accept the disc. Confirmed structurally — the extracted BOOTX64.EFI was a PE32+ executable (335,872 bytes), not a FAT image.
What changed (implemented, commit 0ff2a85 on branch init-setup-gate)
One detail: xorriso warns "Boot image load size exceeds 65535 blocks... Will record 0 in El Torito to extend ESP to end-of-medium". A load size of 0 is the standard mechanism for EFI boot images over 32MiB, and OVMF handles it fine.
Verification
What done looks like
The ISO is detected as a UEFI boot device and boots to OpenRC + sshd. QEMU/OVMF proves it; VirtualBox/Hyper-V confirmation on a real rebuild is the remaining check.
Open questions / follow-ups