Skip to content

feat(os): one-flag debug builds — build-image.sh --ssh; updater defaults to rauc - #816

Merged
VijitSingh97 merged 1 commit into
feat/phase2-bakery-imagefrom
feat/build-ssh-flag
Aug 1, 2026
Merged

feat(os): one-flag debug builds — build-image.sh --ssh; updater defaults to rauc#816
VijitSingh97 merged 1 commit into
feat/phase2-bakery-imagefrom
feat/build-ssh-flag

Conversation

@VijitSingh97

Copy link
Copy Markdown
Collaborator

What

The bench recipe kept getting reinvented from env vars. Now:

  • os/build-image.sh --ssh [PUBKEY_FILE] = the debug/bench variant: bakes the key (default: the builder's own ~/.ssh/id_ed25519.pub, then id_rsa.pub) as root's authorized key and enables sshd. No flag = the shell-less release variant, unchanged.
  • PITHEAD_UPDATER defaults to rauc — the first R2 RC build ran without it and produced an image that could never take another A/B update; verify-image caught it (52/53), but the silent-empty default was the only wrong option. Closes build-image.sh: PITHEAD_UPDATER defaults to empty — a plain build produces an image that cannot update itself #815.
  • docs/dev/appliance-release.md documents the two variants and the take-a-release-update-lose-SSH consequence observed live on the bench today.

Verified

shellcheck clean, make lint green; the same key-bake path (PITHEAD_TEST_SSH_PUBKEY) just built the bench debug image on gouda and passed verify-image --test 51/0 — the flag is a front door on a proven path, not new mechanism.

🤖 Generated with Claude Code

…lts to rauc

The bench recipe kept getting reinvented: the debug variant needed a
remembered env var (PITHEAD_TEST_SSH_PUBKEY) and the updater another
(PITHEAD_UPDATER), and forgetting the latter built an image that could
never take an A/B update (the R2 RC candidate's first build did exactly
that — verify-image caught it). --ssh [PUBKEY_FILE] bakes the key and
enables sshd, defaulting to the builder's own public key; no flag stays
the shell-less release variant. The updater arg now defaults to rauc,
the only updater the boot contract supports.

Closes #815

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VijitSingh97
VijitSingh97 merged commit 93cb617 into feat/phase2-bakery-image Aug 1, 2026
15 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