builder/qemu: allow to convert from any supported format

In case of disk_image: true user can have raw image, but in packer
template specify qcow2 image format.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
Vasiliy Tolstov 2016-12-30 16:16:19 +03:00
parent 1560e15632
commit 20349f750d
2 changed files with 0 additions and 2 deletions

View File

@ -38,7 +38,6 @@ func (s *stepConvertDisk) Run(state multistep.StateBag) multistep.StepAction {
} }
command = append(command, []string{ command = append(command, []string{
"-f", config.Format,
"-O", config.Format, "-O", config.Format,
sourcePath, sourcePath,
targetPath, targetPath,

View File

@ -22,7 +22,6 @@ func (s *stepCopyDisk) Run(state multistep.StateBag) multistep.StepAction {
command := []string{ command := []string{
"convert", "convert",
"-f", config.Format,
"-O", config.Format, "-O", config.Format,
isoPath, isoPath,
path, path,