Skip to content

Commit

Permalink
vm: fix default mount type for qemu driver
Browse files Browse the repository at this point in the history
  • Loading branch information
abiosoft committed Nov 29, 2022
1 parent d45e302 commit f959232
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ func prepareConfig(cmd *cobra.Command) {
startCmdArgs.Mounts = mountsFromFlag(startCmdArgs.Flags.Mounts)
startCmdArgs.ActivateRuntime = &startCmdArgs.Flags.ActivateRuntime

// convert mount type for qemu
if startCmdArgs.Driver != "vz" && startCmdArgs.MountType == "virtiofs" {
startCmdArgs.MountType = "9p"
}

// if there is no existing settings
if current.Empty() {
// attempt template
Expand Down

0 comments on commit f959232

Please sign in to comment.