From fb1f5e6f98b0a493bdda912e2df2617ccbc3c8da Mon Sep 17 00:00:00 2001 From: dan-claude-bot Date: Sat, 18 Jul 2026 20:52:15 +0000 Subject: [PATCH] test(cli): pin the HOME=/root scar so a seed rewrite cannot drop it silently Co-Authored-By: Claude Fable 5 --- test/cli.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cli.sh b/test/cli.sh index 894d4d2..b23b782 100644 --- a/test/cli.sh +++ b/test/cli.sh @@ -277,6 +277,12 @@ for d in "$ROOT"/templates/*/; do # shellcheck disable=SC2016 check "template '$t': the pin reaches the installer's env too" 0 "" \ bash -c 'grep "install.sh" "$1" | grep -q "RIG_REPO=\"@RIG_REPO@\" RIG_REF=\"@RIG_REF@\""' _ "$d/user-data.yaml" + # HOME=/root: a scar found live — cloud-init's runcmd has no $HOME and + # rig's installer (set -u) dies on it (rig#39). The pin must survive + # every seed rewrite. + # shellcheck disable=SC2016 + check "template '$t': the rig install pins HOME=/root (runcmd has no \$HOME)" 0 "" \ + bash -c 'grep "install.sh" "$1" | grep -q "HOME=/root "' _ "$d/user-data.yaml" fi # ------------------------------------------------------------------------ # THE ABSENCE — no tenant content in ANY template, ever again. Everything a