Repository navigation
Refactor kernel enumeration and add UKI reconciliation/retention - #17
Merged
GlitchSlayed merged 1 commit intoMar 13, 2026
Merged
Conversation
GlitchSlayed
deleted the
codex/refactor-kernel-selection-in-uku-setup.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
Description
list_installed_kernels()helper (inuki-setup.shand the generateduki-build.sh) that enumeratesrpm -q kernelresults, normalizes them (stripkernel-) and yields versions that have/lib/modules/<ver>/vmlinuz.list_installed_kernels()and build UKIs for every installed kernel instead of onlyuname -r.--reconcilemaintenance mode in the generateduki-build.shthat rebuilds UKIs for all installed kernels, detects stale UKIs on the ESP, and prunes stale UKIs/EFI entries only after a boot-success marker exists underBOOT_SUCCESS_DIR(default/var/lib/uki-ukify/boot-success).add,remove, and other invocations call the reconcile mode (instead of deleting by the event kernel version), add helperdelete_uki_and_entry()to remove both the UKI file and corresponding EFI boot entry, and document the retention/confirmation behavior in the post-install summary with a manual reconcile invocation (--reconcile) and example confirmation command.Testing
bash -n uki-setup.shto verify the modified script syntax and it passed.bash tests/test_uki_setup.shand the test script passed.bash -n tests/test_uki_setup.shto lint the test and it passed.Codex Task