Repository navigation
Read /boot as root when looking for the Omarchy UKI - #6653
Merged
Merged
Conversation
/boot is mounted with dmask=0077 on encrypted installs, so the unprivileged find returned nothing and direct boot always reported that no UKI was present. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The unprivileged file tests were always false on encrypted installs, so the stale <machine-id>_linux.efi was never cleaned up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
nick1udwig
pushed a commit
to nick1udwig/omarchy
that referenced
this pull request
Sep 9, 2026
* Find the Omarchy UKI as root when setting up direct boot /boot is mounted with dmask=0077 on encrypted installs, so the unprivileged find returned nothing and direct boot always reported that no UKI was present. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Check for the legacy UKI as root when refreshing limine The unprivileged file tests were always false on encrypted installs, so the stale <machine-id>_linux.efi was never cleaned up. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Fixes #6651.
On encrypted installs the ESP is mounted at
/bootwithdmask=0077, so the directory is root-only. Two commands probed it unprivileged and silently treated the resultingEACCESas "not found".omarchy-setup-direct-bootsearched for the UKI with a plainfind, swallowed the permission error with2>/dev/null, and reportedError: No Omarchy UKI found in /boot/EFI/Linux/even thoughomarchy_linux.efiwas sitting right there. That made direct boot unusable on every encrypted install.omarchy-refresh-liminehad the same flaw in its[[ -f ... ]]tests, where it failed quietly instead: both tests were always false, so the stale<machine-id>_linux.efileft over from pre-quattro custom-UKI installs was never cleaned up.Both now read
/bootthroughsudo, matching whatomarchy-upgrade-to-quattroalready does withas_root find /boot/EFI/Linux.efibootmgrandfindmntreads are left alone — they work fine unprivileged.One behavior change worth noting:
omarchy-setup-direct-bootnow asks for the sudo password before thegum confirm, rather than after. The command is markedrequires-sudo=trueand the menu runs it in a floating terminal, so there is a prompt available either way.— 🤖 Claude, posting on behalf of @dhh