Skip to content

Allow linux-omarchy-bore in kernel migration entry verification (#14859) - #14873

Closed
Sebo1411 wants to merge 1 commit into
omacom:quattrofrom
Sebo1411:fix/issue-14859-kernel-migration-limine-entry-bore
Closed

Sebo1411 wants to merge 1 commit into
omacom:quattrofrom
Sebo1411:fix/issue-14859-kernel-migration-limine-entry-bore

Conversation

@Sebo1411

Copy link
Copy Markdown
Contributor

Fixes #14859

Summary of changes

  • In migrations/1789325478.sh, updated the limine-entry-tool --tree grep check from (^|[^[:alnum:]_-])$kernel([^[:alnum:]_-]|$) to (^|[^[:alnum:]_-])$kernel(-bore)?([^[:alnum:]_-]|$).
  • Since linux-omarchy became a meta package depending on linux-omarchy-bore, the Limine boot entry is created under linux-omarchy-bore, which caused the migration's completion check to fail and abort updates.
  • In test/shell.d/omarchy-kernel-migration-test.sh, updated the limine-entry-tool stub to test linux-omarchy-bore by default and added a test case verifying legacy linux-omarchy is also accepted, while ensuring older variants (linux-omarchy-ptl-novrr-mm) and fallback entries continue to be rejected when the primary entry is missing.

@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue was found.

Summary

The migration now accepts linux-omarchy-bore as well as legacy linux-omarchy boot entries.

  • The migration accepts the linux-omarchy-bore boot entry.
  • Limine puts the bore kernel ahead of other Omarchy variants.

Reviews (2) · Last reviewed commit: "Allow linux-omarchy-bore in kernel migra..." · Reviewed by Greptile

@jandrusk

Copy link
Copy Markdown

Thanks, this unblocks the dev-channel update loop from #14859 (also reported as #14908). A few things I noticed while reading the migration around the change:

  • BOOT_ORDER still starts with "linux-omarchy, linux-omarchy-*, …". Since the Limine entry is now linux-omarchy-bore, the only thing putting it first is the linux-omarchy-* glob, and that glob also matches the older variants the comment warns about (linux-omarchy-ptl-novrr-mm, etc.). Listing linux-omarchy-bore explicitly after linux-omarchy would keep the "exact kernel first" intent.
  • sudo limine-mkinitcpio "$kernel" with the meta package owns no modules.builtin, so it falls back to rebuilding every installed kernel, as the issue describes. It works, but the targeted rebuild is gone.
  • Hard-coding (-bore)? ties the check to today's flavor. Resolving the real kernel package(s) behind linux-omarchy (e.g. from pacman -Qi linux-omarchy's depends, or the pkgbase files under /usr/lib/modules/*/) and using that name for the rebuild, BOOT_ORDER, and the tree check would survive the next flavor change too.

None of these should block getting the loop fixed. The first one is the one I'd most like to see addressed.

@Sebo1411
Sebo1411 force-pushed the fix/issue-14859-kernel-migration-limine-entry-bore branch from 2680d0a to 1e7c464 Compare October 12, 2026 19:35
@Sebo1411

Copy link
Copy Markdown
Contributor Author

Added linux-omarchy-bore explicitly right after linux-omarchy in BOOT_ORDER across migrations/1789325478.sh, etc/limine-entry-tool.d/omarchy-defaults.conf, and their corresponding test suites. This ensures the exact kernel flavor retains first boot priority ahead of generic linux-omarchy-* globs on both existing migrations and fresh default configs.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for this. It has not been fully reviewed yet, so it has no labels: every item here is classified separately by two models, and only an agreed class decides what happens next. The second classifier (Codex Medium) did not run this time, because the bot's daily budget of second-opinion reviews was already used up. The reviewer itself is up; it just was not called. That means nothing was run on a worker and the test suite was not run.

What was checked, by reading only (Claude Opus 5.5): the problem in #14859 is real at this head. In omarchy-pkgs, pkgbuilds/linux-omarchy/PKGBUILD is now a meta package whose only dependency is linux-omarchy-bore. That means the Limine entry is named linux-omarchy-bore, and the check in migrations/1789325478.sh on quattro only accepts the exact token linux-omarchy, so it can never pass. quattro has not touched these four files since this branch forked, and I found no other open pull request fixing the same check. Nothing was found wrong in the diff, but nothing was run either.

Next: it waits on the second classification. Once that agrees, the fix is reproduced and run on a worker, and the remarks from @jandrusk above (the targeted limine-mkinitcpio rebuild, and resolving the flavour rather than hard-coding -bore) are weighed then.

@AndreyASchneider

Copy link
Copy Markdown

Widening the regex fixes today's symptom, but the thing it patches verifies the rendered menu, and that's the part that keeps biting.

limine-entry-tool --tree prints entry titles. A kernel whose attribute block sits inline under the OS entry, rather than in a // sub-entry, has no title to print — so the grep reports "no boot entry" for a kernel that is installed, hashed, signed and bootable.

I hit that false negative on stable 4.0.4-1 with linux-omarchy 7.2.5-3, i.e. before the meta-package split. Rendered tree:

Omarchy
Windows
Snapshots
└─ 1 │ 2026-08-20 22:47:06
   └─ linux
EFI fallback

while /boot/limine.conf held, inline under /Omarchy:

  comment: kernel-id=linux                  # 7.2.3-arch1-3
  ...
  comment: kernel-id=linux-omarchy          # 7.2.5-3-omarchy, signed, bootable

Disclosure: my flat entry came from a local post hook of my own that collapses the kernel dropdown, so this particular trigger is not stock Omarchy and I'm not asking anyone to support it. I'm reporting it because it is the same failure the -bore rename produces, arriving from the other direction: the check cannot see a kernel that is demonstrably there, and $kernel(-bore)? will need widening again for whatever variant ships next.

Two suggestions, both cheap:

1. Verify the kernel entry, not the menu rendering. The kernel-id is in the config either way:

grep -qE "^[[:space:]]*comment:[[:space:]]*kernel-id=${kernel}(-[a-z0-9]+)?[[:space:]]*$" /boot/limine.conf

I ran this against four captured real states plus a simulated -bore arrival. It passes all of them (flat single-kernel, flat two-kernel, properly nested two-kernel, and -bore), and still fails a control config with no Omarchy kernel present. The current tree-grep fails three of those four. The (-[a-z0-9]+)? suffix is deliberately loose so a meta package's real kernel satisfies it; resolving the id from the package that owns the modules would be stricter, and would also fix the related limine-mkinitcpio "$kernel" no-op described in #14859, since the meta package owns no modules.builtin.

2. Don't let this check be fatal to the whole migration run. omarchy-migrate is set -euo pipefail and runs each migration with bash -euo pipefail "$file" with no || continue, so this single exit 1 strands every later migration indefinitely. Because the marker is written last, each retry also redoes omarchy-pkg-add and the BOOT_ORDER rewrite before failing at the same line again (each retry appends another blank line to /etc/default/limine, since the rewrite is printf '\n%s\n'). Warning and continuing here — or writing the marker once the kernel is confirmed installed, separately from any menu-shape check — would turn a hard block into a cosmetic complaint.

Minor, but related: the message The Omarchy kernel has no Limine boot entry; rerun omarchy-migrate after fixing the boot image build. misdirects. The boot image built fine in both the -bore case and mine. Something closer to "the kernel is installed but no Limine entry for it was found in /boot/limine.conf" would point at the actual gap.

@Sebo1411

Sebo1411 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

@AndreyASchneider

Regarding keeping the check fatal: Omarchy migration guidelines strictly require that migrations are synchronous and fail-fast (exit 1 stops the queue without marking completion, so state is never assumed established if a critical boot entry build failed). Allowing a kernel migration to proceed silently when the entry isn't verified would risk rebooting into an unbootable state or stranding the bootloader config.

Regarding verifying /boot/limine.conf directly vs limine-entry-tool --tree: stock Omarchy relies on Limine's entry tool tree rendering as the canonical contract for what the user's bootloader actually presents. As you noted in your disclosure, the flattened entry in your setup was caused by a custom local post-hook rather than stock Omarchy behavior, which makes that specific case a local configuration/user modification issue rather than an upstream bug. Widening the pattern to accommodate -bore specifically addresses the meta-package split on standard Omarchy installs without breaking or bypassing the tree verification contract.

@ryanrhughes

Copy link
Copy Markdown
Collaborator

Thanks for digging into this @Sebo1411, and for turning around the BOOT_ORDER feedback so quickly.

We ended up fixing it on the package side instead. omacom/omarchy-pkgs#1231 made linux-omarchy the actual BORE kernel again, and omacom/omarchy-pkgs#1237 turned linux-omarchy-bore into a transitional package that just depends on linux-omarchy. The Limine entry is linux-omarchy again, so the migration's existing check and the targeted limine-mkinitcpio rebuild both work as written.

The meta package only ever lived on edge and rc; stable went straight from 7.2.5 to 7.2.8-9. Every channel is on 7.2.8-9 now, so there's nothing left for this to fix. Closing it out.

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.

dev: migration 1789325478 always fails since linux-omarchy became a meta package for linux-omarchy-bore

6 participants