Skip to content

Commit

Permalink
core: ensure that the user defined VMType flag is respected for m3 …
Browse files Browse the repository at this point in the history
…devices (#1045)
  • Loading branch information
SpikePuppet authored Jul 1, 2024
1 parent 369561d commit 5b1ece8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b1ece8

Please sign in to comment.