Repository navigation
Conversation
This branch has not been deployed
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.
Wi-Fi setup fails when the selected network has ID 0. _find_network_id returns None for a missing network, but _setup_wifi uses if not network_id, which also rejects 0. During startup, this causes archinstall to exit before the guided installer opens.
This fix checks explicitly for None, allowing network 0 to be enabled. Regression tests cover IDs 0 and 1, plus a missing network. The ID 0 test fails before the fix and passes afterward.
Validation, includes 37 tests, ruff lint and formatting, Flake8, Pylint, project-wide mypy, and the wheel build passed.

Tested on the official Arch Linux ISO with wpa_supplicant 2.12 and two mac80211_hwsim radios. Both found network ID 0. The original code reported failure and showed a failure notification. The fixed code returned success without the notification, and the virtual client completed WPA association with the virtual access point.