Skip to content

Commit 1349641

Browse files
committed
Don't generate cidata.iso for external vm
It is not using cloud-init anyway, and does not need another copy of lima-guestagent and nerdctl-full.tgz Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
1 parent 0d04063 commit 1349641

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/hostagent/hostagent.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ func New(instName string, stdout io.Writer, signalCh chan os.Signal, opts ...Opt
136136
if err := cidata.GenerateCloudConfig(inst.Dir, instName, inst.Config); err != nil {
137137
return nil, err
138138
}
139-
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
140-
return nil, err
139+
if *inst.Config.VMType != limayaml.EXT {
140+
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
141+
return nil, err
142+
}
141143
}
142144

143145
sshOpts, err := sshutil.SSHOpts(

0 commit comments

Comments
 (0)