fix: use INSTALL_SPINIFEX_SKIP_APT/AWS env vars instead of non-existent --offline flag (mulga-859)

This commit is contained in:
tomnewton-mulga
2026-04-07 16:01:17 +10:00
parent 5d6f25a695
commit 6dfb350be8
+12 -1
View File
@@ -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 {