Skip to content

Commit b7a6efa

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 f283e6f commit b7a6efa

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
@@ -138,8 +138,10 @@ func New(instName string, stdout io.Writer, signalCh chan os.Signal, opts ...Opt
138138
if err := cidata.GenerateCloudConfig(inst.Dir, instName, inst.Config); err != nil {
139139
return nil, err
140140
}
141-
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
142-
return nil, err
141+
if *inst.Config.VMType != limayaml.EXT {
142+
if err := cidata.GenerateISO9660(inst.Dir, instName, inst.Config, udpDNSLocalPort, tcpDNSLocalPort, o.nerdctlArchive, vSockPort, virtioPort); err != nil {
143+
return nil, err
144+
}
143145
}
144146

145147
sshOpts, err := sshutil.SSHOpts(

0 commit comments

Comments
 (0)