Skip to content

Add Update > Secure Bootloader to move a Limine machine to systemd-boot - #21127

Merged
omarchybot merged 4 commits into
quattrofrom
secure-bootloader
Dec 1, 2026
Merged

omarchybot merged 4 commits into
quattrofrom
secure-bootloader

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

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 --available runs the part of the preflight that describes the machine, split out as machine_fits: platform, UEFI, not an Intel Mac, not already switched, Limine through limine-entry-tool, a btrfs root. It needs no root and takes about 20ms, and the menu pairs it with the omarchy-boot-backend reader 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. preflight runs machine_fits and then those, so it evaluates every check it did before.

docs/boot.md describes the entry and stops saying nothing offers the switch.

🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex XHigh.

dhh and others added 3 commits December 1, 2026 15:30
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>
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge, with the previous snapshot-menu issue fixed and no new blocking issues found.RetriggerView in GreptileConfidence Score: 5/5

[Critical impact] The PR appears safe to merge, with the previous snapshot-menu issue fixed and no new blocking issues found.

Summary

Adds Update > Secure Bootloader with a warning, checks, confirmation, and a trial reboot prompt.

  • The Update menu guides eligible machines through a systemd-boot switch.
  • The switch check separates machine fit from fixable setup issues.

The previous snapshot-menu finding is fixed. No new actionable issues were found. The ISO's install call remains unchanged; no affected callers were found in the related package repositories. Review was based on source reads, not a live boot or desktop test.

Reviews (2) · Last reviewed commit: "Keep the row on a snapshot boot, and hav..." · Reviewed by Greptile

Comment thread bin/omarchy-boot-switch Resolved
…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>
@emirb

emirb commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@dhh hold with this one, I have a bug fix that has to go before

@omarchybot
omarchybot merged commit 88b4d14 into quattro Dec 1, 2026
6 checks passed
@omarchybot
omarchybot deleted the secure-bootloader branch December 1, 2026 17:09
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants