Skip to content

Commit

Permalink
Merge pull request #174 from rancher-sandbox/qemu-6.1
Browse files Browse the repository at this point in the history
qemu-img 6.1.0 no longer supports using -b without -F
  • Loading branch information
AkihiroSuda authored Aug 28, 2021
2 parents b748f12 + ac49903 commit a2045a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func EnsureDisk(cfg Config) error {
}
args := []string{"create", "-f", "qcow2"}
if !isBaseDiskISO {
args = append(args, "-b", baseDisk)
args = append(args, "-F", "qcow2", "-b", baseDisk)
}
args = append(args, diffDisk, strconv.Itoa(int(diskSize)))
cmd := exec.Command("qemu-img", args...)
Expand Down

0 comments on commit a2045a1

Please sign in to comment.