Skip to content

Commit 353d4fb

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 <anders.f.bjorklund@gmail.com>
1 parent c9228bc commit 353d4fb

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)