Repository navigation
Add Update > Secure Bootloader to move a Limine machine to systemd-boot - #21127
Merged
Merged
Conversation
The switch to systemd-boot had no way in but the terminal. The new row opens a one-way warning (Limine goes for good, pre-switch snapshots are deleted, other systems leave the boot menu; in exchange Secure Boot and Easy Anti-Cheat become possible later), then runs omarchy-boot-switch's check, one confirmation and the switch, and offers the trial reboot. The row shows only on machines that can move. omarchy-boot-switch --available runs the part of its preflight that describes the machine, without root, in about 20ms; what has to settle first stays in --check so an update-fixable problem explains itself instead of hiding the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fails --available hid the row over an unmounted ESP, a missing snapper config or loader, or a boot into a snapshot, all of which have a remedy the terminal can name. It now asks only what can't change: platform, UEFI, Intel Mac, already switched, Limine through limine-entry-tool, a btrfs root. The rest moved back into preflight in front of the transient checks. A failed --check or refused sudo now exits non-zero instead of falling through to "Aborted". The warning no longer promises a firmware boot entry that may not exist, and says plainly that a factory reset is the one way back to Limine. docs/boot.md stops saying nothing offers the switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
…holds findmnt prints a row per mount stacked at /, so comparing its whole output failed on a machine with two; reading the first row is what the check did before. The subvolume check runs only on btrfs, so an ext4 root is told once. The warning no longer offers factory reset as the way back, since a machine upgraded without @factory has none, and it no longer says Windows always stays: the check names which systems leave the menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
Contributor
[Critical impact] The PR appears safe to merge, with the previous snapshot-menu issue fixed and no new blocking issues found. SummaryAdds Update > Secure Bootloader with a warning, checks, confirmation, and a trial reboot prompt.
The previous snapshot-menu finding is fixed. No new actionable issues were found. The ISO's Reviews (2) · Last reviewed commit: "Keep the row on a snapshot boot, and hav..." · Reviewed by Greptile |
…itch A snapshot boot mounts / as an overlay, so the btrfs check in machine_fits hid the row exactly when the terminal had something to explain. A snapshot boot, recognised by its command line as the menu's Restore row does, now passes --available, and preflight refuses it by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
@dhh hold with this one, I have a bug fix that has to go before |
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Dec 1, 2026
…ot (omacom#21127) * Add Update > Secure Bootloader to move a Limine machine to systemd-boot The switch to systemd-boot had no way in but the terminal. The new row opens a one-way warning (Limine goes for good, pre-switch snapshots are deleted, other systems leave the boot menu; in exchange Secure Boot and Easy Anti-Cheat become possible later), then runs omarchy-boot-switch's check, one confirmation and the switch, and offers the trial reboot. The row shows only on machines that can move. omarchy-boot-switch --available runs the part of its preflight that describes the machine, without root, in about 20ms; what has to settle first stays in --check so an update-fixable problem explains itself instead of hiding the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Leave anything with a remedy to --check, and fail the wrapper when it fails --available hid the row over an unmounted ESP, a missing snapper config or loader, or a boot into a snapshot, all of which have a remedy the terminal can name. It now asks only what can't change: platform, UEFI, Intel Mac, already switched, Limine through limine-entry-tool, a btrfs root. The rest moved back into preflight in front of the transient checks. A failed --check or refused sudo now exits non-zero instead of falling through to "Aborted". The warning no longer promises a firmware boot entry that may not exist, and says plainly that a factory reset is the one way back to Limine. docs/boot.md stops saying nothing offers the switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com> * Read the root mount's first row, and keep the warning to what always holds findmnt prints a row per mount stacked at /, so comparing its whole output failed on a machine with two; reading the first row is what the check did before. The subvolume check runs only on btrfs, so an ext4 root is told once. The warning no longer offers factory reset as the way back, since a machine upgraded without @factory has none, and it no longer says Windows always stays: the check names which systems leave the menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com> * Keep the row on a snapshot boot, and have --check say why it can't switch A snapshot boot mounts / as an overlay, so the btrfs check in machine_fits hid the row exactly when the terminal had something to explain. A snapshot boot, recognised by its command line as the menu's Restore row does, now passes --available, and preflight refuses it by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Codex XHigh <noreply@openai.com>
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.
Moving a Limine machine to systemd-boot could only be started from a terminal, with
omarchy-boot-switch. This adds Update > Secure Bootloader, right under Update > Omarchy, so a person can find it.The row opens a floating terminal with a one-way warning in the manner of passwordless sudo: once systemd-boot has proved it starts the machine, Limine is removed and the switch can't be undone; snapshots taken before the switch are deleted; other systems in Limine's menu may leave the boot menu. In exchange, systemd-boot is the boot loader Secure Boot needs, which makes Secure Boot possible in a future release, and with it Easy Anti-Cheat for games like Fortnite. It then runs
omarchy-boot-switch --check, asks once, runs the switch with--yes, and offers the trial reboot. A failed check exits non-zero.The row shows only on machines that could ever move.
omarchy-boot-switch --availableruns the part of the preflight that describes the machine, split out asmachine_fits: platform, UEFI, not an Intel Mac, not already switched, Limine throughlimine-entry-tool, a btrfs root. It needs no root and takes about 20ms, and the menu pairs it with theomarchy-boot-backendreader it already batches. Everything with a remedy (booted into a snapshot, ESP not mounted, snapper, owner setup, a running transaction, this version's initramfs hooks, free space) stays in--check, so the row never disappears over something the terminal can explain.preflightrunsmachine_fitsand then those, so it evaluates every check it did before.docs/boot.mddescribes the entry and stops saying nothing offers the switch.🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex XHigh.