Skip to content

Commit 7aa77a2

Browse files
committed
Regenerate the cloud-config.yaml on start
It was already generated by "create", but it might have changed since. So make sure that it is updated by "start". It is up to the user if they already used this file, and if so they need to update the file for the next boot too. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 8ed2754 commit 7aa77a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/hostagent/hostagent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ func New(instName string, stdout io.Writer, signalCh chan os.Signal, opts ...Opt
136136
virtioPort = "" // filenames.VirtioPort
137137
}
138138

139+
if err := cidata.GenerateCloudConfig(inst.Dir, instName, y); err != nil {
140+
return nil, err
141+
}
139142
if err := cidata.GenerateISO9660(inst.Dir, instName, y, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
140143
return nil, err
141144
}

0 commit comments

Comments
 (0)