Repository navigation
Conversation
The kernel migration exempts Macs by looking for the linux-t2 package or a -t2 kernel release, so T1 and pre-T2 Macs on stock linux were switched to linux-omarchy and had their boot order rewritten (omacom#12281). Two of those could not live with it: a MacBookAir6,1 boots to an emergency shell on linux-omarchy (omacom#12097) and a Haswell Mac gets HDMI audio underruns (omacom#12131). Also skip when the DMI vendor reads Apple, with an env override so the test stays hermetic. A missing or unreadable vendor still migrates. Fixes omacom#12281 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Recommendation: no blocking issue found in the tested scopeVerified: Apple machines skip the kernel migrationA/B-tested Both Impact: prevents pending migrations from switching kernels on these Apple machines. It does not restore machines that already migrated. Existing test failure, not introduced by this PR
Suggested follow-up: correct the stale assertion without deleting the unrelated migration. The untouched full test file is not passing. Test scope: fixture execution only; no Intel Mac boot or real package installation tested. Automated AI review: Astra inspected the PR, Fable 5.1 and a separate Astra session reviewed it independently, then findings were checked against targeted tests. |
|
Reviewed at 33f076a. The Apple guard does what it says: a T1 or pre-T2 Intel Mac on stock What was checked. On a disposable Omarchy worker I ran a reproduction of my own against migration One thing outside this PR stops its tests running once merged. On current Second opinion. Codex at medium effort reviewed the diff. It found no defect in the guard. It confirmed the stub breakage above and found the line 173 expectation, which I had missed. It noted that DMI vendor is a heuristic: a Hackintosh with Apple SMBIOS is skipped, and a VM on a Mac host is not. Neither is a reported problem. It also said the new comment overstates things slightly ("keep the kernel they were installed with"), which I left alone because it changes no behaviour. Its agreement on the guard was not guaranteed to be independent of my own reading. Waiting on the maintainer. Two things are theirs to decide: whether every Intel Mac should be held off |
|
The Apple DMI-vendor guard looks correct for #12281 (T1 / pre-T2 Macs keep their kernel), and the tests cover |
|
Re-checked at 33f076a against current The test file runs again. 0e7d6c2 on #14873 does not collide with this. As @jandrusk pointed out, it changes the same migration so that the Second opinion. Codex at medium effort reviewed the change as merged into Waiting on the maintainer. Whether every Intel Mac should stay off |
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]>
|
Re-checked, because this stopped merging into What the merge changed. The only conflict was What was checked. Without the test file, I wrote a reproduction of my own and ran it on a disposable Omarchy worker. It covers stock-
Second opinion. Codex at medium effort and muse-wonder (pi, thinking high) reviewed the merged head. They found no defect. They agreed the conflict resolution is right and the change is proportionate. They also agreed the Related. Draft #12691 carries this same guard as part of a larger Intel Mac series. Beyond it, it fails the migration when the DMI vendor cannot be read. This pull request is the older of the two and is the one being brought forward. Which approach to take is the maintainer's call. Waiting on the maintainer. They have to decide whether every Intel Mac should stay off |
[Medium impact] This change appears safe to merge. SummaryAdds an Apple vendor check to
Acknowledged scope from Reviews (1) · Last reviewed commit: "Merge quattro into kernel-migration-skip..." · Reviewed by Greptile |
Fixes #12281.
Problem
Migration
1789325478exempts Macs from thelinux-omarchyswap, but the test only recognises T2 Macs: thelinux-t2package or a-t2kernel release. A T1 or pre-T2 Mac running stocklinuxmatches neither, so it is switched tolinux-omarchyand hasBOOT_ORDERrewritten. #12097 (MacBookAir6,1 boots to an emergency shell) and #12131 (Haswell Mac HDMI audio underruns) are non-T2 Macs that took that swap.Fix
Also skip when
/sys/class/dmi/id/sys_vendorstarts withApple, the same idiommigrations/1786391100.shuses.OMARCHY_KERNEL_DMI_VENDORoverrides the path so the test stays hermetic, matching the otherOMARCHY_KERNEL_*overrides in the file. A missing or unreadable vendor file still migrates, so non-DMI machines and VMs are unaffected.Machines that already ran the migration are untouched; this reaches late updaters coming from 4.0.3 or earlier.
Tests
test/shell.d/omarchy-kernel-migration-test.shgains three cases:Apple Inc.andApple Computer, Inc.are skipped with no calls, no config change and no marker; a missing vendor file still installs the kernel. All prior cases still pass.Note: the existing assertion "the superseded migration must not install the PTL variant first" fails on current
quattroindependently of this change, because a73bcbf re-addedmigrations/1789095456.shafter ff85faf removed it.🤖 Generated with Claude Code