Repository navigation
Conversation
h8d13
added a commit
to h8d13/archinstoo
that referenced
this pull request
Nov 26, 2026
With a separate /boot the UKI is written to the ESP, but efibootmgr got /boot's disk and partition number, so firmware could not load it. Same for the removable-path fallback copy. Non-FAT /boot is only rejected without UKI, firmware never reads it. efibootmgr(8): --disk/--part are the partition containing the loader. Ported from archlinux/archinstall#4887 Co-authored-by: RageGen <zamorin.daniil@mail.ru>
h8d13
added a commit
to h8d13/archinstoo
that referenced
this pull request
Nov 26, 2026
Ported from archlinux/archinstall#4887 Co-authored-by: RageGen <zamorin.daniil@mail.ru>
h8d13
added a commit
to h8d13/archinstoo
that referenced
this pull request
Nov 26, 2026
* fix(bootloader): efistub UKI entry targets the ESP With a separate /boot the UKI is written to the ESP, but efibootmgr got /boot's disk and partition number, so firmware could not load it. Same for the removable-path fallback copy. Non-FAT /boot is only rejected without UKI, firmware never reads it. efibootmgr(8): --disk/--part are the partition containing the loader. Ported from archlinux/archinstall#4887 Co-authored-by: RageGen <zamorin.daniil@mail.ru> * test(bootloader): efistub entry partition and UKI validation Ported from archlinux/archinstall#4887 Co-authored-by: RageGen <zamorin.daniil@mail.ru> --------- Co-authored-by: RageGen <zamorin.daniil@mail.ru>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
With EFISTUB and UKI enabled, a separate
/bootpartition produces a firmware entry pointing at the wrong partition._config_ukiwrites the image to the EFI system partition, but_add_efistub_bootloaderpasses the/bootpartition's disk and number toefibootmgr. Installation can finish with an entry that firmware cannot load.Use the EFI system partition for UKI entries. Keep
/bootfor ordinary kernel entries. Also apply the non-FAT/bootrestriction only when UKI is disabled, since UKIs are written to the ESP.Adds eight regression cases covering shared and separate partitions, an ESP on another disk, both UKI modes, two kernel entries, and an ext4
/boot. Before the fix, three cases failed; afterward, all eight passed.Validation includes, a 42 tests passed, ruff lint/format, Flake8, Pylint, project-wide mypy and the wheel build passed.
Tested both revisions in QEMU/OVMF using the official Arch Linux ISO and a disposable GPT disk with separate FAT
/efiand/bootpartitions. The real configuration writer andefibootmgrregistered partition 2 before the fix and partition 1 afterward. Booted each saved disk/firmware state without the ISO or a directly supplied kernel. The original entry failed withNot Foundand firmware reported no bootable device. The fixed entry loaded the UKI and the Arch kernel reached a test initramfs.The test UKI used Arch's kernel and systemd stub, built with Arch's
ukifypackage. Package installation and Installer's mkinitcpio call were skipped; the test supplied a prebuilt UKI. Physical firmware, Secure Boot and a full installed system were not tested.efibootmgrdocuments--diskand--partas the disk and partition containing the loader: https://man.archlinux.org/man/efibootmgr.8Related to #2684, but this change addresses UKI layouts; the non-UKI
/efilayout described there remains outside its scope.