Repository navigation
Install matching kernel headers before broadcom-wl-dkms - #12090
paulogeyer wants to merge 1 commit into
Conversation
The 4.0.3 swap to DKMS omitted headers on stock linux, so the module never built and Wi-Fi died after reboot.
Automated AI review
Verified: the migration's repair works. Installing a Three points need attention: the new test fails once merged onto current New test fails on the current
|
| Case (sandboxed, pacman and sudo stubbed) | Result |
|---|---|
| PR test at the PR head | exit 0, 4 of 4 ok |
PR test with the PR merged onto quattro (clean textual merge) |
exit 1, not ok - linux gets headers when broadcom-wl-dkms is present |
Control: quattro's existing kernel-headers-migration-test.sh |
exit 1, not ok - linux-omarchy gets its headers (same stub pattern) |
Same merged tree, stub changed to accept -- (as in #13365) |
exit 0, 4 of 4 ok |
Impact: test-only. Production code works with the new helpers, but the new test file fails under ./test/shell after merge, the same way the existing kernel tests fail on quattro today. #13365 and #13061 fix that stub pattern in the existing kernel tests, not in this new file.
Suggested change: make the stub accept --, for example -Q) grep -Fxq -- "${@: -1}" "$INSTALLED_PACKAGES" ;;, and have the -S branch record only non-flag arguments.
fix-bcm43xx.sh hunk reverses a recent upstream rule
Commit 24417bf ("Treat matching kernel headers as a base system guarantee", 2026-09-15) removed header installs from every DKMS installer and added this rule to agents/skills/install-scripts.md: "The base install supplies matching kernel headers before hardware setup. DKMS installers should install their driver packages and assume the headers exist." This PR adds a header loop back into one installer.
- Fresh installs: the current omarchy-iso installs
<kernel>-headersfor the selected kernels before any DKMS package and fails the install if an installed kernel lacks matching headers. In a simulated ISO-style system, the new loop installed nothing. - Upgrades:
omarchy-updatenever runsfix-bcm43xx.sh; only a manualomarchy apply hardwarewould. - Other PRs: with this hunk,
fix-bcm43xx.shconflicts with open Support Broadcom BCM4352 Wi-Fi during installation #11655 (BCM4352) and fix(bcm43xx): install broadcom-wl-dkms for BCM43224 #10910 (BCM43224), which merge cleanly intoquattroalone. Support Broadcom BCM4352 Wi-Fi during installation #11655 also adds a test that fails iffix-bcm43xx.shcontains the wordheaders.
Impact: no practical benefit on fresh installs. The hunk conflicts with the documented installer rule and with two open hardware-support PRs.
Suggested change: drop the fix-bcm43xx.sh hunk and its rg checks, and keep the migration.
linux-zen and linux-hardened are not covered
The loop names linux linux-lts linux-omarchy linux-t2. With broadcom-wl-dkms and linux-zen or linux-hardened installed without headers, the migration installs nothing for those kernels, so wl is not built for them. Arch's dkms lists linux-zen-headers and linux-hardened-headers as optional dependencies, and #12074 covers both.
Impact: machines booting linux-zen or linux-hardened with broadcom-wl-dkms get no wl module for those kernels from this migration.
Suggested change: add both kernels, or derive the installed kernels (for example from pacman -Qoq /usr/lib/modules/*/vmlinuz, as suggested on #10975).
Scope and related notes
- Scope of the repair: on current
quattro, migration1789325478runs first and moves every affected x86_64 non-T2 machine tolinux-omarchywith headers as the first boot entry, keeping the old kernel as a fallback. This PR's added value is a workingwlon the retained stocklinuxfallback, onlinux-lts, and on machines that later removedlinux-omarchy. The comment "older MacBooks still run linux" could say that stocklinuxstays as the fallback entry. Thelinux-omarchyandlinux-t2loop entries are already handled by1789444024. - Duplicate work: Install stock kernel headers for broadcom-wl-dkms on upgraded Macs #12074 adds the same gated migration (
migrations/1789546355.sh) forlinux linux-lts linux-zen linux-hardened, and [Intel Mac P02] Repair headers for retained stock kernels #12680 carries it. Its test has the same$2stub pattern. If both merged, both migrations would run; the second would install nothing for kernels the first already covered. - Migration timestamp:
1789532833is older than five migrations already onquattro(up to1790457067). It still runs, since markers are per file, but out of chronological order. Regenerating it withomarchy-dev-add-migrationafter a rebase would place it last. - Optional test improvement: the installer checks are
rgstring matches only. Moving the header loop afteromarchy-pkg-add broadcom-wl-dkmsstill passes every assertion, although the test message says headers are installed "before DKMS". Order does not affect the build, so either reword the message or drop these checks with the hunk. - Optional: Arch's DKMS hook logs build errors but exits 0, so a completed migration does not prove
wlbuilt. Adkms status broadcom-wlcheck after installing headers would surface a failed build.
Review information
Test scope: source review of the PR head, its merge base and the current quattro tip, plus Arch dkms 3.4.3-2, broadcom-wl-dkms 6.30.223.271-50, linux 7.2.7.arch1-1 packaging and the current omarchy-iso orchestrator. The PR's test and the migration and installer scenarios ran in an isolated sandbox with stubbed pacman, sudo and lspci. No real package transaction, DKMS build or Broadcom hardware was exercised; DKMS behavior comes from the hook source. Conflicts with related PRs were checked with Git merges only.
AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.
Opt out: To stop receiving these reviews, reply to this comment saying so.
|
Thanks for tracking this down. The diagnosis is right: #12074 makes the same repair, though, and I'm recommending that one to the maintainer instead of this one, for three reasons. Each is checked against current
#12680 is a draft that carries #12074's migration unchanged. I didn't run this branch on a worker, because only one of these competing fixes should be verified and taken forward. This comes from reading the three diffs against The choice between the two is the maintainer's, so this is waiting on them. If you have an affected Mac, the most useful thing in the meantime would be a comment on #12074 saying whether it brings Wi-Fi back on the stock |
|
Thank you for this, @paulogeyer. #12074 got there first with a fix for the same problem, so this is closed in favour of it, and the credit stays with the first fix. If it does not cover your case, please say so there. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Closes #10975
Summary
The 4.0.3 upgrade swapped
broadcom-wlforbroadcom-wl-dkmswithout headers on stocklinux(older MacBooks). The module never built, so Wi-Fi died after reboot.Install matching headers in
fix-bcm43xx.sh, and repair existing DKMS installs with a migration that coverslinux/linux-ltsas well as Omarchy/T2 kernels.Test plan