engine, integration, setup: Seeds should be called properly

This commit is contained in:
James Shubin
2025-06-07 17:51:45 -04:00
parent 25263fe9ea
commit 2b7e9c3200
3 changed files with 12 additions and 7 deletions

View File

@@ -574,8 +574,14 @@ func (obj *VirtBuilderRes) CheckApply(ctx context.Context, apply bool) (bool, er
"--enable", // start on first boot!
fmt.Sprintf("--binary-path=%s", m),
"--no-server", // TODO: hardcode this for now
fmt.Sprintf("--seeds=%s", strings.Join(obj.Seeds, ",")),
//fmt.Sprintf("--seeds=%s", strings.Join(obj.Seeds, ",")),
}
for _, seed := range obj.Seeds {
// TODO: validate each seed?
s := fmt.Sprintf("--seeds=%s", seed)
setupSvc = append(setupSvc, s)
}
setupSvcCmd := strings.Join(setupSvc, " ")
args := []string{"--run-command", setupSvcCmd} // cmd must be a single string
cmdArgs = append(cmdArgs, args...)