From 5b1ece83b34d688b35f39772437fe44bff1169b9 Mon Sep 17 00:00:00 2001 From: Rhys Johns Date: Tue, 2 Jul 2024 07:32:29 +1000 Subject: [PATCH] core: ensure that the user defined `VMType` flag is respected for m3 devices (#1045) --- cmd/start.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 5021f0966..19cff925c 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -241,13 +241,13 @@ func mountsFromFlag(mounts []string) []config.Mount { func setDefaults(cmd *cobra.Command) { if startCmdArgs.VMType == "" { startCmdArgs.VMType = defaultVMType - } - // m3 devices cannot use qemu - if util.M3() { - startCmdArgs.VMType = "vz" - cmd.Flag("vm-type").Changed = true - } + // m3 devices cannot use qemu + if util.M3() { + startCmdArgs.VMType = "vz" + cmd.Flag("vm-type").Changed = true + } + } if util.MacOS13OrNewer() { // changing to vz implies changing mount type to virtiofs