Skip to content

Offer Wi-Fi on first run when only a link-local link is up - #596

Merged
maralcbr merged 1 commit into
quattro-upstreamfrom
mac/94-first-login-wifi
Sep 26, 2026
Merged

maralcbr merged 1 commit into
quattro-upstreamfrom
mac/94-first-login-wifi

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Ticket 94. On the M2 (image 4) first login showed no Wi-Fi toast and a red network icon. NetworkManager had brought up the Thunderbolt cable to another Mac as thunderbolt0 with only a link-local address, so its state was "connected (local only)". nm-online counts that as connected, so first run skipped the Wi-Fi toast and posted "Update System" straight away with no internet (confirmed from that boot's journal and the saved notifications).

First run now counts only a connection with a default route as online (NM state connected or connected (site only)), and holds the update toast until one appears. No network and DHCP-network cases behave as before on x86; the only x86 difference is that a machine whose only active links are local (Thunderbolt networking, a bridge) now gets the Wi-Fi toast, as intended.

Tested:

  • New test/shell.d/first-run-wifi-test.sh (no network, online, routed but limited, link-local only) and first-run-test.sh pass.
  • Full test/shell as non-root on x86: only failures are 7 files that fail identically on base.
  • nmcli state strings checked against NM 1.58 source and on the M2.
  • Hardware check owed on the next fresh install (no Wi-Fi joined: expect the Wi-Fi toast, update toast only after joining).

Second review: no issues found; noted the benign x86 difference above.

NetworkManager brings Thunderbolt networking up with only a link-local
address, and nm-online counts that as connected, so a Mac cabled to another
computer skipped the Wi-Fi prompt and was offered an update it could not
reach. Count only a connection with a default route as online.
@maralcbr
maralcbr merged commit 8de1c24 into quattro-upstream Sep 26, 2026
5 checks passed
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.

1 participant