Skip to content

Commit

Permalink
fix qemu util convert for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Weiss <[email protected]>
  • Loading branch information
Scott Weiss committed May 21, 2016
1 parent 4b6b8d3 commit eecfe38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/providers/common/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func ConvertRawImage(sourceFormat, targetFormat types.ImageFormat, inputFile, ou
targetFormatName = "vpc" //for some reason qemu calls VHD disks vpc
}
dir := filepath.Dir(inputFile)
cmd := exec.Command("docker", "run", "--rm", "-v", dir+":"+dir,
outDir := filepath.Dir(outputFile)
cmd := exec.Command("docker", "run", "--rm", "-v", dir+":"+dir, "-v", outDir+":"+outDir,
"projectunik/qemu-util",
"qemu-img", "convert", "-f", string(sourceFormat), "-O", targetFormatName, inputFile, outputFile)
logrus.WithField("command", cmd.Args).Debugf("running command")
Expand Down

0 comments on commit eecfe38

Please sign in to comment.