mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Do not try to autodetect UEFI mode
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
8aa811540f
commit
317ddb09df
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user