Repository navigation
Add post-build UKI verification gate before EFI registration - #18
Merged
GlitchSlayed merged 1 commit intoMar 13, 2026
Merged
Conversation
GlitchSlayed
deleted the
codex/add-post-build-verification-stage-to-uki-build.sh
branch
March 19, 2026 02:14
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.
Motivation
uki-build.shtemplate performs a safety/consistency check on the built UKI prior to creating UEFI boot entries to avoid registering broken images.Description
fileto the setup dependency list and ensure the generated build script requiresfileandobjdumpat runtime viarequire_cmd.uki-build.shtemplate that runs before EFI registration and enforces: existence/non-empty artifact, minimum size threshold (10 MiB), PE/COFF detection viafileandobjdump -f, extraction/validation of embeddedcmdline(viaukify inspectwith.cmdlineobjdump fallback) andunamemetadata (viaukify inspectwith.unameobjdump fallback), and only proceeds to EFI registration when all checks pass./var/log/uki-setup.logwith UTC timestamp and the kernel version.extract_uki_section_text,extract_ukify_inspect_field, andverify_uki_post_buildinto the generated script and wire them into the build flow.tests/test_uki_setup.shto assert the new verification-related template contents and required runtime checks are present.Testing
bash tests/test_uki_setup.sh, which completed successfully and validated the generateduki-build.shtemplate contains the new verification functions, runtimerequire_cmdchecks, and the/var/log/uki-setup.logaudit path.Codex Task