Repository navigation
Switch the default kernel from Update > Kernel - #15966
Merged
Merged
Conversation
When more than one kernel is installed, Update > Kernel lists them with the boot default checked. Picking one runs omarchy-kernel set, which authenticates once through pkexec, puts the kernel first in BOOT_ORDER in /etc/default/limine, and rebuilds only that kernel's entry to reorder the boot menu. omarchy-kernel and omarchy-kernel list report the default and the installed kernels. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A rebuild that fails or never reaches the boot menu now puts the previous BOOT_ORDER back, so neither omarchy-kernel get nor the next kernel update acts on a rejected choice. A wildcard that ties several kernels no longer picks one alphabetically: their limine.conf order decides and only root can read it, so get reports the tie instead. Update > Kernel gets the wide layout Fonts uses so long kernel names fit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Direct Boot has the firmware load one UKI without Limine, so a reordered boot menu would change nothing; say how to turn it off instead. A BOOT_ORDER assignment with a trailing comment now counts, as it does for limine-entry-tool. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Direct Boot check reads efibootmgr itself so sudo omarchy-kernel set is refused like the menu path. A rebuild that reorders the boot menu and then fails in a post hook now rebuilds the previous default under the restored order, so the menu and BOOT_ORDER agree again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…body Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
[Medium impact] The PR appears safe to merge; no new actionable defect was established. SummaryAdds Update > Kernel and
Previous threads were rechecked without posting duplicates. dhh explicitly accepted leaving the checkmark off for hand-edited wildcard-first orders because shipped defaults and
|
…eader Overlapping switches from the detached menu action could let one that failed restore its backup over another that had succeeded, so a switch now holds a lock from reading the old state through rollback. The new BOOT_ORDER is staged beside /etc/default/limine and renamed over it, so a failed write cannot delete the saved order. Rollback rebuilds the kernel that led the boot menu before the switch, which root reads from the menu itself, so a wildcard tie no longer leaves nothing to restore. The kernel command gets its GROUP_DESCRIPTIONS entry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…click Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge the BOOT_ORDER reader into one function, write the config in place inside the rollback instead of staging a separate file, and have get name a kernel only when the first match is an exact name rather than counting wildcard ties. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # shell/plugins/menu/Menu.qml
20 of 34 tasks
4 tasks
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.
When more than one kernel is installed, a new Update > Kernel menu sits under Channel. It lists the installed kernels, puts a ✓ next to the one Limine boots by default, and uses the wide layout Fonts uses so long names like
linux-omarchy-bore-o3-expfit. Picking one switches the default with a single pkexec prompt. Afterwards a 30s notification says "Now using " / "Reboot to use new default kernel", and clicking it reboots.omarchy-kernelomarchy-kernel/get: the default kernel, resolved from the effectiveBOOT_ORDER. Config files are read in limine-entry-tool's precedence, so/etc/default/liminewins over drop-ins. Each pattern is matched against the installed kernels'pkgbase. If a wildcard matches several kernels, only/boot/limine.conf(root-only) knows which comes first, sogetreports the tie rather than guessing.omarchy-kernel list: the installed kernels.omarchy-kernel set <kernel>: refuses kernels that aren't installed, and refuses when Direct Boot is active, because the firmware skips Limine then. From the menu it escalates once through pkexec; in a terminal it uses sudo, per the privilege rules. As root it does three things:BOOT_ORDER, keeping the rest of the effective order behind it (e.g.linux-t2preferences)limine-mkinitcpio <kernel>, about 13s here instead of a fulllimine-update, which rewriteslimine.confin the new orderlimine-entry-tool --treethat the kernel is now the first entryIf the rebuild or the check fails, it restores the previous
BOOT_ORDERand rebuilds the previous default, so the config and the boot menu agree again.The menu rows come from a new
kernelsprovider inMenu.qml. Thewhenguard only countspkgbasefiles, so it adds no pacman or root calls to the guard batch.Tests
test/shell.d/omarchy-kernel-test.shhas 13 cases. They coverget/listresolution (drop-in vs central precedence, globs, inline comments, wildcard ties), refusing kernels that aren't installed, the single-pkexec menu path and its notification, a cancelled prompt, and Direct Boot refusal for both halves. The root half runs in a user namespace and covers theBOOT_ORDERrewrite, idempotency, rebuilding a single kernel, and rollback after both a skipped build and a late failure.The menu, menu-guard, guard-budget, bin-style and CLI suites pass.
i18n-test.shfails only on key parity for the other languages (the new English strings are untranslated until the sync runs), the same wayquattroalready fails onsystem.reboot-boot-menu.I also ran a real
omarchy-kernel set linux-omarchyon an x86 Limine machine through the pkexec path. It took one prompt, rebuilt only that kernel, passed the--treecheck, and leftBOOT_ORDERcorrect.🤖 Generated with Claude Code