Repository navigation
Fix legacy Broadcom wl conflict on BCM4350 Macs upgrading to Quattro - #8812
rsharma1157 wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds targeted cleanup of legacy Broadcom wl packages that disable Wi-Fi on BCM4350 Macs during Quattro upgrades.
Changes:
- Detects Apple BCM4350 hardware before package installation.
- Removes installed
broadcom-wlvariants. - Adds static regression checks; runtime behavior still needs coverage.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
bin/omarchy-upgrade-to-quattro |
Adds hardware-gated legacy driver cleanup. |
test/shell.d/upgrade-to-quattro-test.sh |
Adds cleanup and ordering checks. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| for package in broadcom-wl broadcom-wl-dkms; do | ||
| grep -F "package_installed_exact \"\$pkg\"" <<<"$bcm4350_body" >/dev/null || | ||
| fail "Omarchy 4 upgrade makes BCM4350 wl cleanup idempotent" | ||
| grep -F "$package" <<<"$bcm4350_body" >/dev/null || | ||
| fail "Omarchy 4 upgrade removes legacy package $package from Apple BCM4350 systems" |
|
Reviewed by Claude Opus 5 in Claude Code, with an independent second opinion from Codex at xhigh reasoning. The diagnosis holds up and the gate is right. One real defect, and a push problem that needs you. The premise checks out. I pulled the Arch package apart on a disposable VM rather than taking it on trust. One defect, and it is the reverse of the expected one. At I could not push the fix: your fork - as_root pacman -Rdd --noconfirm "${legacy_wl_packages[@]}"
+ as_root pacman -Rdd --noconfirm "${legacy_wl_packages[@]}" ||
+ warn "Could not remove ${legacy_wl_packages[*]}; brcmfmac stays blacklisted and this Mac may have no Wi-Fi. Continuing."On the tests. Codex demonstrated that deleting the grep -F 'pacman -Rdd --noconfirm "${legacy_wl_packages[@]}" ||' <<<"$bcm4350_body" >/dev/null ||
fail "Omarchy 4 upgrade survives a failed legacy wl removal"Things I checked and cleared, so they do not come back in a later review. Left open, for the maintainer rather than you. A user-written What ran. Waiting on you to unarchive the fork so the guard can land, then on the maintainer for the merge decision and the three open questions above. |
Wi-Fi driver cleanup should not abort the 3.x to Quattro upgrade when pacman -Rdd exits non-zero. Co-authored-by: rsharma1157 <rsharma1157@users.noreply.github.com>
The suite greps the function body, so every assertion in it still passed with the removal deleted outright or with its || warn guard dropped. Under set -euo pipefail an unguarded pacman -Rdd aborts the upgrade between remove_conflicting_legacy_packages and install_omarchy_quattro_packages, leaving the machine part Omarchy 3 and part Quattro; this pins the guard that keeps a stubborn Wi-Fi driver from causing that. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Re-reviewed at The fix is correct. Pushed one commit, grep -F 'pacman -Rdd --noconfirm "${legacy_wl_packages[@]}" ||' <<<"$bcm4350_body" >/dev/null ||
fail "Omarchy 4 upgrade survives a failed legacy wl removal"Both mutations now fail on a worker where before they passed: dropping the The thing that needs you: this does not repair a Mac that has already upgraded. The hook is in the upgrade script, so it only runs for someone still on 3.x. #8810 reports the opposite machine — its pre-upgrade snapshot shows Two smaller things about the failure path, both judgement calls I have not touched. The warning names the packages but not the symptom, so a user reading Things checked and cleared, so they do not come back. The gate is genuinely specific: What ran. Waiting on the maintainer for the merge decision, for whether an already-upgraded machine gets a migration, and for the two failure-path questions above. |
Fixes #8810
Quattro already uses brcmfmac for Apple BCM4350 (14e4:43a3), but legacy Omarchy 3.x installs can retain broadcom-wl or broadcom-wl-dkms during upgrade.
Those legacy wl packages blacklist brcmfmac, which can leave the upgraded system without a Wi-Fi interface when wl fails to initialize.
This change removes legacy broadcom-wl/broadcom-wl-dkms only on Apple BCM4350 systems before the Quattro package transaction.
Other Broadcom devices that intentionally use wl are unchanged.
Validation: