fix: run catalog migrations without Pi home initialization

This commit is contained in:
Codex
2026-10-06 15:49:42 +02:00
parent 8b9a086fd6
commit d79e261e09
2 changed files with 28 additions and 0 deletions
@@ -39,6 +39,8 @@ func prepareIdentity(i config.Installation) error {
}
}
core := services["core"].(map[string]any)
// Migrations do not launch Pi and must not mutate its image-owned home.
services["catalog-migrate"].(map[string]any)["entrypoint"] = []string{"/usr/bin/tini", "--"}
core["volumes"] = append(core["volumes"].([]any), map[string]any{"type": "volume", "source": "harness-pi", "target": "/app/harness/.pi"})
services["catalog-db"].(map[string]any)["environment"] = map[string]string{"PGDATA": "/var/lib/postgresql/data/data"}
volumes := map[string]any{}