write a fake cloud config i guess

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-17 21:14:27 -04:00
parent 89e4f8af71
commit dd322d7f91
1 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,13 @@ func main() {
if err != nil {
log.Fatal(err)
}
} else {
fout, err := os.Create(filepath.Join(dir, "user-data"))
if err != nil {
log.Fatal(err)
}
fmt.Fprintln(fout, "#cloud-config")
fout.Close()
}
isoPath := filepath.Join(cdir, "seed", fmt.Sprintf("%s-%s.iso", *name, vmID))