@@ -229,16 +229,9 @@ func (st *State) CreateMac(ctx context.Context, minor int) (slotName string, err
229
229
return "" , fmt .Errorf ("unsupported makemac minor OS X version %d" , minor )
230
230
}
231
231
232
- builderType := fmt .Sprintf ("darwin-amd64 -10_%d" , minor )
232
+ hostType := fmt .Sprintf ("host-darwin -10_%d" , minor )
233
233
234
- // Up to 10.12 we used the deprecated buildlet --reverse mode, instead of --reverse-type.
235
- // Starting with 10.14 (and 10.13 if we ever make a High Sierra image), we're switching
236
- // to the non-deprecated mode.
237
- if minor >= 13 {
238
- builderType = fmt .Sprintf ("host-darwin-10_%d" , minor )
239
- }
240
-
241
- key , err := ioutil .ReadFile (filepath .Join (os .Getenv ("HOME" ), "keys" , builderType ))
234
+ key , err := ioutil .ReadFile (filepath .Join (os .Getenv ("HOME" ), "keys" , hostType ))
242
235
if err != nil {
243
236
return "" , err
244
237
}
@@ -281,7 +274,7 @@ func (st *State) CreateMac(ctx context.Context, minor int) (slotName string, err
281
274
"-e" , "smc.present=TRUE" ,
282
275
"-e" , "ich7m.present=TRUE" ,
283
276
"-e" , "firmware=efi" ,
284
- "-e" , fmt .Sprintf ("guestinfo.key-%s=%s" , builderType , strings .TrimSpace (string (key ))),
277
+ "-e" , fmt .Sprintf ("guestinfo.key-%s=%s" , hostType , strings .TrimSpace (string (key ))),
285
278
"-e" , "guestinfo.name=" + name ,
286
279
"-vm" , name ,
287
280
); err != nil {
0 commit comments