Do not try to autodetect UEFI mode

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-08-04 11:42:30 +01:00
parent 8aa811540f
commit 317ddb09df
2 changed files with 3 additions and 6 deletions

View File

@ -92,7 +92,9 @@ func runHyperKit(args []string) {
*isoBoot = true
prefix = strings.TrimSuffix(path, ".iso")
// hyperkit only supports UEFI ISO boot at present
*uefiBoot = true
if !*uefiBoot {
log.Fatalf("Hyperkit requires --uefi to be set to boot an ISO")
}
}
}

View File

@ -174,11 +174,6 @@ func runQemu(args []string) {
*isoBoot = true
prefix = strings.TrimSuffix(path, ".iso")
}
// autodetect EFI ISO from our default naming
if strings.HasSuffix(path, "-efi.iso") {
*uefiBoot = true
prefix = strings.TrimSuffix(path, "-efi.iso")
}
}
if *state == "" {