From 6c963a15bd89d5ac31baa5410319420944e05b17 Mon Sep 17 00:00:00 2001 From: Michal Date: Wed, 1 Apr 2026 09:59:02 +0100 Subject: [PATCH] fix: firstboot reprovision path now runs hostname, user, and registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously the reprovision path exited early after re-mounting LVs, skipping hostname setup, admin user creation, metadata, and bastion registration. Now both paths fall through to the common post-setup code. Tested on Mac Studio (worker1-k8s0) — reprovision + self-registration confirmed working via curl | bash pipe. Co-Authored-By: Claude Opus 4.6 (1M context) --- bastion/src/bastion/src/templates/asahi-firstboot.sh.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bastion/src/bastion/src/templates/asahi-firstboot.sh.ts b/bastion/src/bastion/src/templates/asahi-firstboot.sh.ts index a635e7f..49af7ab 100644 --- a/bastion/src/bastion/src/templates/asahi-firstboot.sh.ts +++ b/bastion/src/bastion/src/templates/asahi-firstboot.sh.ts @@ -141,10 +141,7 @@ ${roleFstabLines.map(l => ` ${l}`).join('\n')} } echo "Existing LVM volumes re-mounted." - touch "$MARKER" - exit 0 -fi - +else # ── Fresh install: create LVM ──────────────────────────────────── echo "Creating LVM on $DATA_PART..." @@ -223,6 +220,8 @@ ${roleFstabLines.join('\n')} echo "LVM setup complete." lvs labvg +fi # end if/else for reprovision vs fresh install + # ── Set hostname ───────────────────────────────────────────────── hostnamectl set-hostname "${hostname}"