feat: WiFi onboarding via balena wifi-connect#2
Open
reneaaron wants to merge 1 commit into
Open
Conversation
Alternative to the bumi/hub-os-config captive portal (PR #1), using the de-facto-standard first-boot WiFi provisioning tool instead of a bespoke build-from-source binary. - Pinned wifi-connect release (v4.11.84) + UI bundle, downloaded and checksum-verified in the chroot — same reproducible pattern as the Alby Hub binary, and no CI cross-compile step (balena ships prebuilt arm64 binaries). - wifi-connect.service runs as a blocking oneshot ordered Before=albyhub.service: it serves the "albyhub-setup" portal on :80 only when offline and exits once WiFi is set, so the hub cleanly takes :80 afterward — no separate wait gate. - WiFi-only by design; all hub settings are configured in Alby Hub's own onboarding UI once online. - Keeps the baked WiFi regdom (AP mode needs one; wifi-connect sets none). - Includes the albyhub.local hostname fix (BASE_OVERRIDE_HOSTNAME).
reneaaron
marked this pull request as ready for review
July 8, 2026 15:15
4 tasks
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.
Alternative onboarding approach to #1 (bumi/hub-os-config), branched off
masterso the two can be compared directly.Approach
Uses balena wifi-connect — the de-facto-standard first-boot WiFi captive portal for headless Linux — instead of a bespoke, build-from-source Go service.
v4.11.84) + UI bundle, downloaded and checksum-verified in the chroot (same reproducible pattern as the Alby Hub binary). No CI cross-compile step — balena ships arm64 binaries.wifi-connect.serviceis a blockingoneshotorderedBefore=albyhub.service: it serves thealbyhub-setupportal on:80only when offline and exits once WiFi is configured, so the hub cleanly takes:80afterward. No separate:80wait-gate needed.ALBYHUB_WIFI_COUNTRY=US) — AP mode needs one and wifi-connect sets none.albyhub.localhostname fix (BASE_OVERRIDE_HOSTNAME).vs #1 (bumi/hub-os-config)
.envkeysNot yet done
Closes nothing — this is a candidate to potentially supersede #1.