Repository navigation
Skip kernel migration without Limine tooling - #14188
Conversation
[Medium impact] The PR appears safe to merge within its stated command-presence boundary. SummaryAdds an early skip to
Reviews (14) · Last reviewed commit: "Skip kernel migration without Limine too..." · Reviewed by Greptile |
9e53af7 to
ef451f3
Compare
|
Addressed both new findings in ef451f3 after rebasing onto current
The focused regression test failed first on the passwordless-sudo case, then passed with cases for passwordless command access and denied privileged checks. Bash syntax checks and |
ef451f3 to
db8162a
Compare
|
Thanks for this, skipping non-Limine machines is the right call. One thing worries me before it lands: Limine installs with the ESP somewhere else (e.g.
limine_esp=$(sed -n 's/^ESP_PATH=["'\'']\?\([^"'\'']*\).*/\1/p' "$limine_conf" 2>/dev/null | tail -1)
limine_boot_conf="${OMARCHY_KERNEL_LIMINE_BOOT_CONF:-${limine_esp:-/boot}/limine.conf}"A test case with |
db8162a to
5c0aba3
Compare
|
jandrusk caught that the hardcoded |
|
Greptile correctly flagged that an unmounted FAT32 fstab entry does not identify a Limine machine. Commit 3147c5a removes that inference: automatic discovery now follows only mounted FAT32 candidates, matching |
|
Greptile correctly flagged that a matching systemd mount unit did not prove the filesystem was an ESP. Commit 05b4e0d now treats a systemd-managed path as an unavailable ESP only when the mount unit declares |
|
The two new Greptile findings are corrected in f6c84d7. The migration now reads systemd’s effective mount configuration, so unit-directory precedence and drop-ins are honored. |
|
Greptile’s quoted-hash finding is corrected in bfdc3a4. |
|
Greptile’s single-quote finding is corrected in dbf02a1. The single-quoted parser now stops at the first closing quote before the optional comment, so |
dbf02a1 to
0d571cc
Compare
|
I over-expanded this after the ESP_PATH review. I replaced the branch with 0d571cc, which keeps only the command-presence guard and its focused regression. This removes the duplicate Limine config and mount discovery, avoids the custom-ESP false skip, and limits the claim to the reproduced missing-tooling failure. The regression failed on current quattro before the guard; all 20 focused migration cases, both Bash syntax checks, git diff --check, the added-line security scan, and a fresh Codex review pass. |
|
Thanks, re-checked: cutting it back to just the command-presence guard is the right call. It avoids the custom-ESP false skip entirely and is much easier to review. LGTM. |
|
Thanks for paring this back. Gating on |
|
Reviewed at 0d571cc by Claude Opus 5.5. The fix holds up, and I found nothing to change. Reproduced on a worker built from the Omarchy ISO. I ran migration 1789325478 with Proportionate. The guard is the same Tests: No second opinion ran. The configured reviewer, Codex Medium, responds, but omabot's daily review limit was used up. Classifying this item needs a second model to agree, so it is unsettled for now and has no labels yet. It will be reviewed again once the reviewer is available. Related: #12691 edits the same migration to exempt Intel Macs. It is not a competing fix, but whichever of the two lands second will need a small rebase. #14908 is a separate failure in this migration ( Nothing is waiting on the author. Next is a second-opinion review, then the maintainer's decision. |
|
Thanks @jandrusk — I agree with keeping this to the command-presence guard. I rechecked the current head: the focused migration proof and checks pass, and the branch is clean. |
0d571cc to
cb13c67
Compare
quattro removed the migration tests (omacom#16302), including test/shell.d/omarchy-kernel-migration-test.sh, which this branch extended with its Apple cases. Resolve the conflict by taking the deletion, per the house rule that migrations get no suite test; the migration change merges cleanly beside the Limine tooling skip from omacom#14188. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
Migration
1789325478assumeslimine-mkinitcpiois available. Machines upgraded from older Omarchy releases can still boot with GRUB or systemd-boot, so the migration installslinux-omarchy, edits Limine configuration, and then stops at a missing command. Because it remains pending, it also blocks later migrations.Fix
I now check for
limine-mkinitcpiobefore the migration changes packages or boot configuration. If the command is absent, the migration explains the skip and leaves the existing kernel and boot setup untouched.I removed the later boot-config detection added during review. It had grown into a second implementation of Limine's ESP and configuration discovery, including mount parsing. The command-presence boundary is smaller and matches the concrete failure this PR reproduces. It also avoids misclassifying Limine installs with a custom
ESP_PATH.Verification
The regression stubs the command check and verifies that the migration makes no package, config, marker, or reboot-state changes when the tooling is absent. On the unmodified base, it failed because the migration performed the full kernel switch. After rebasing onto current
quattro, I kept upstream's deletion of this shipped migration test, restored the test temporarily, and confirmed all 20 cases still pass.bash -n migrations/1789325478.shgit diff --checkA machine that still has
limine-mkinitcpioinstalled while booting another loader is not identified by this guard.