Repository navigation
Offer Wi-Fi on first run when only a link-local link is up - #596
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
thunderbolt0with only a link-local address, so its state was "connected (local only)".nm-onlinecounts 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
connectedorconnected (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:
test/shell.d/first-run-wifi-test.sh(no network, online, routed but limited, link-local only) andfirst-run-test.shpass.test/shellas non-root on x86: only failures are 7 files that fail identically on base.Second review: no issues found; noted the benign x86 difference above.