Skip to content

Commit 5ad23d4

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 <[email protected]>
1 parent bef550f commit 5ad23d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/hostagent/hostagent.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ func New(instName string, stdout io.Writer, signalCh chan os.Signal, opts ...Opt
134134
if err := cidata.GenerateCloudConfig(inst.Dir, instName, inst.Config); err != nil {
135135
return nil, err
136136
}
137-
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
138-
return nil, err
137+
if *inst.Config.VMType != limayaml.EXT {
138+
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
139+
return nil, err
140+
}
139141
}
140142

141143
sshOpts, err := sshutil.SSHOpts(

0 commit comments

Comments
 (0)