homelab-codex-ws/scripts/onboard/steps
Oskar Kapala 471ba09c4a fix(onboard/00-access): suppress known-hosts warning in Tailscale verify
On first SSH to a new mesh hostname, OpenSSH emits
"Warning: Permanently added 'lustro' to the list of known hosts"
on stderr. The previous code used 2>&1, merging it into the captured
arch variable, which caused the arch assertion to fail with
arch="Warning:Permanentlyadded...".

Fix:
- Add dedicated _TS_SSH opts array with -o LogLevel=ERROR, which
  suppresses INFO-level messages (known-hosts, banner) at source
- Remove 2>&1 — stderr is no longer merged into the captured value
- Run only `uname -m` instead of `echo ok && uname -m`; take the last
  non-empty stdout line to be robust against any remaining preamble
- Change arch mismatch from warn to die in live mode (warn in dry-run)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 15:28:21 +02:00
..
00-access.sh fix(onboard/00-access): suppress known-hosts warning in Tailscale verify 2026-06-08 15:28:21 +02:00
00-preflight.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
10-bootstrap-runtime.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
20-install-docker.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
30-install-tailscale.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
40-deploy-node-agent.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00
50-verify.sh feat(onboard): add node onboarding scaffold (bash, idempotent) 2026-06-08 14:23:21 +02:00