Skip to content

Rebuild the boot image after the limine quiet-boot migration changes the menu - #15527

Closed
adi-IL wants to merge 3 commits into
omacom:quattrofrom
adi-IL:fix-limine-migration-rebuild
Closed

adi-IL wants to merge 3 commits into
omacom:quattrofrom
adi-IL:fix-limine-migration-rebuild

Conversation

@adi-IL

@adi-IL adi-IL commented Oct 15, 2026 •

Copy link
Copy Markdown

Fixes #15524

Migration 1791898365 edits /boot/limine.conf with sed but never rebuilds the boot image. With Secure Boot and config enrollment, Limine checks the menu against a checksum stored in that image, so the next boot panics with a checksum mismatch.

The migration now runs sudo limine-mkinitcpio on every run where limine-mkinitcpio is installed. omarchy-migrate only runs a migration while it's pending, so a normal machine rebuilds once. If the rebuild fails, the migration exits non-zero and stays pending, and the retry rebuilds again even though the menu was already edited on the first try.

Testing: rebased onto quattro, which removed the migration tests in #16302, so this PR no longer carries a test. bash -n passes and shellcheck -s bash is clean on the migration.

Not covered:

  • I haven't verified a real Secure Boot reboot.
  • Machines that already ran this migration won't be repaired by this change. They still need sudo limine-mkinitcpio run once by hand.

@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous failure-detection issue is fixed.

Summary

The migration rebuilds the boot image even when an earlier attempt already changed the menu.

  • The boot-menu migration rebuilds the image after changing the Limine menu.

Reviews (4) · Last reviewed commit: "Keep the quiet boot migration pending wh..." · Reviewed by Greptile

Comment thread migrations/1791898365.sh Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for picking this up. I read the change at c41266a against quattro and #15524. Migration 1791898365 on quattro still edits limine.conf without running limine-mkinitcpio, and no other open pull request fixes it. Running the rebuild on every pass where limine-mkinitcpio is present, so a retry after a failed rebuild still rebuilds, follows the pattern the other limine migrations use.

This item isn't classified or verified yet. I (Claude Opus 5.5) classified it as a bug, but the second reviewer (Codex Medium) didn't get to run because today's review budget is used up. An item only gets a class label once two models agree, so it has no label for now. Nothing has been run on a worker yet. The fix still needs to be reproduced, with the menu edit failing on quattro and passing on this head, before it can be marked verified.

Next step: it comes back round once the classification is settled. Nothing is needed from you in the meantime.

…conf

Secure Boot with config enrollment checks limine.conf against a
checksum in the boot image, so editing it without limine-mkinitcpio
panics the next boot (omacom#15524).
A failed rebuild leaves the migration pending, but the retry found the
menu already edited and skipped the rebuild, marking itself done with a
stale boot image. Rebuild on every run instead.
@adi-IL
adi-IL force-pushed the fix-limine-migration-rebuild branch from c41266a to 61ad38a Compare November 2, 2026 16:10
Comment thread migrations/1791898365.sh Resolved
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.

Limine checksum-mismatch panic after omarchy update: migration 1791898365 rewrites /boot/limine.conf without re-enrolling it

2 participants