@@ -111,7 +111,7 @@ func setupEnv(y *limayaml.LimaYAML, args TemplateArgs) (map[string]string, error
111
111
return env , nil
112
112
}
113
113
114
- func templateArgs (instDir , name string , y * limayaml.LimaYAML , udpDNSLocalPort , tcpDNSLocalPort , vsockPort int , virtioPort string ) (* TemplateArgs , error ) {
114
+ func templateArgs (bootScripts bool , instDir , name string , y * limayaml.LimaYAML , udpDNSLocalPort , tcpDNSLocalPort , vsockPort int , virtioPort string ) (* TemplateArgs , error ) {
115
115
if err := limayaml .Validate (y , false ); err != nil {
116
116
return nil , err
117
117
}
@@ -124,6 +124,7 @@ func templateArgs(instDir, name string, y *limayaml.LimaYAML, udpDNSLocalPort, t
124
124
return nil , err
125
125
}
126
126
args := TemplateArgs {
127
+ BootScripts : bootScripts ,
127
128
Name : name ,
128
129
User : u .Username ,
129
130
UID : uid ,
@@ -327,10 +328,14 @@ func templateArgs(instDir, name string, y *limayaml.LimaYAML, udpDNSLocalPort, t
327
328
}
328
329
329
330
func GenerateCloudConfig (instDir , name string , y * limayaml.LimaYAML ) error {
330
- args , err := templateArgs (instDir , name , y , 0 , 0 , 0 , "" )
331
+ args , err := templateArgs (false , instDir , name , y , 0 , 0 , 0 , "" )
331
332
if err != nil {
332
333
return err
333
334
}
335
+ // mounts are not included here
336
+ args .Mounts = nil
337
+ // resolv_conf is not included here
338
+ args .DNSAddresses = nil
334
339
335
340
if err := ValidateTemplateArgs (args ); err != nil {
336
341
return err
@@ -345,7 +350,7 @@ func GenerateCloudConfig(instDir, name string, y *limayaml.LimaYAML) error {
345
350
}
346
351
347
352
func GenerateISO9660 (instDir , name string , y * limayaml.LimaYAML , udpDNSLocalPort , tcpDNSLocalPort int , nerdctlArchive string , vsockPort int , virtioPort string ) error {
348
- args , err := templateArgs (instDir , name , y , udpDNSLocalPort , tcpDNSLocalPort , vsockPort , virtioPort )
353
+ args , err := templateArgs (true , instDir , name , y , udpDNSLocalPort , tcpDNSLocalPort , vsockPort , virtioPort )
349
354
if err != nil {
350
355
return err
351
356
}
0 commit comments