From 6dfb350be80baab4e07b7bbad4227d5163858d29 Mon Sep 17 00:00:00 2001 From: tomnewton-mulga Date: Tue, 7 Apr 2026 16:01:17 +1000 Subject: [PATCH] fix: use INSTALL_SPINIFEX_SKIP_APT/AWS env vars instead of non-existent --offline flag (mulga-859) --- cmd/installer/install/install.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/installer/install/install.go b/cmd/installer/install/install.go index 831153548..8a4d6cb9d 100644 --- a/cmd/installer/install/install.go +++ b/cmd/installer/install/install.go @@ -111,8 +111,19 @@ func installSpinifex(cfg *Config) error { } // Run setup.sh inside a chroot to install dependencies and systemd units. + // INSTALL_SPINIFEX_SKIP_APT and INSTALL_SPINIFEX_SKIP_AWS are set because + // all packages are already present in the ISO's live environment and will + // be available in the chroot after debootstrap bind-mounts. setupSh := "/usr/local/share/spinifex/setup.sh" - return run("chroot", mountRoot, "bash", setupSh, "--offline") + cmd := exec.Command("chroot", mountRoot, "bash", setupSh) + cmd.Env = append(os.Environ(), + "INSTALL_SPINIFEX_SKIP_APT=1", + "INSTALL_SPINIFEX_SKIP_AWS=1", + "INSTALL_SPINIFEX_TARBALL=/usr/local/share/spinifex/spinifex.tar.gz", + ) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + return cmd.Run() } func writeNetworkConfig(cfg *Config) error {