Fix Secure Boot enrollment: distinct ujust recipe enroll-monolith-secure-boot-key #18
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
monolith-os/monolith!18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-secureboot-ujust-import"
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?
Problem
ujust enroll-secure-boot-keyran the upstream ublue recipe (keyakmods-ublue.der, passworduniversalblue) instead of Monolith's (keyakmods-monolith.der, passwordmonolith). Since Monolith signs its kernel/modules with the monolith key, the on-screenuniversalblueprompt enrolls the wrong key and Secure Boot still can't validate the kernel.Two things were wrong:
60-monolith-secureboot.just, which ublue's main justfile never imports — it only doesimport? "60-custom.just". So our recipe sat on disk doing nothing.60-custom.justgets it imported, but a recipe named the same as the upstream one still loses: ublue imports00-default.just(which ownsenroll-secure-boot-key) before60-custom.just, and among sibling imports the first definition wins. Verified againstjust1.51:Fix
60-custom.just(the file ublue actually imports), andenroll-monolith-secure-boot-key, so there's no collision to lose.Both commands now coexist; the monolith one reliably enrolls the monolith key with password
monolith. README updated to reference the new command.The upstream
enroll-secure-boot-keystill exists and enrolls the ublue key — harmless (an extra, unused MOK), just not what monolith users want.🧪 Test this PR on a real install
Once the build checks on this PR pass, a signed test image is published for each edition. Pick the one matching your hardware and, from an existing Monolith install (which already has the signing policy), rebase onto it:
monolith-gnomemonolith-gnome-nvidiaThe tags are rebuilt on every new commit here, so
rpm-ostree upgradepulls the latest build. When you're done testing, return to your edition's released image (:latest).The test tags stop updating once this PR is merged or closed.