From 5304105c6187a21bbe0fb2bacc52d1d9977bcc64 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Tue, 17 Nov 2026 15:23:21 -0600 Subject: [PATCH] fix(a113d): start the console with --serve in /init The A113D image boots a custom /init (not BusyBox rcS, so the init.d overlay is not run). That /init launched the console binary with no args, which only prints usage -- so the board came up on SSH + network but served no web UI/API. Patch /init during the build to launch 'alkane-os --serve', bringing up the web console on :80 and the HTTP API that fleet discovery/install-verify need. Caught by the full GUI-flow test (board installed + reachable but absent from the post-install scan). Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i --- image/make-a113d-afw.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/image/make-a113d-afw.sh b/image/make-a113d-afw.sh index 4516afa..60c8692 100755 --- a/image/make-a113d-afw.sh +++ b/image/make-a113d-afw.sh @@ -70,6 +70,13 @@ mkdir -p "$RFS" install -D -m 0755 "$WORK/alkane-os" "$RFS/usr/bin/alkane-os" # The .afw version, reported by GET /api/identity (fleet discovery). printf '%s\n' "$VERSION" > "$RFS/etc/alkane-os-version" +# This board boots a custom /init (not BusyBox rcS, so the init.d overlay is not +# run). That /init launches the console binary with no args -- which only prints +# usage and exits. The real binary needs `--serve` to bring up the web console + +# HTTP API, so patch the launch line. Idempotent. +if [ -f "$RFS/init" ] && ! grep -q 'alkane-os --serve' "$RFS/init"; then + sed -i 's#\(/usr/bin/alkane-os\)\( >/dev/null\)#\1 --serve\2#' "$RFS/init" +fi if [ -d "$OVERLAY" ]; then ( cd "$OVERLAY" && find . -type f ) | while IFS= read -r f; do install -D -m 0755 "$OVERLAY/${f#./}" "$RFS/${f#./}"