From 20349f750dd4ee3511e4354e8b05ef96821c1988 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 30 Dec 2016 16:16:19 +0300 Subject: [PATCH] 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 --- builder/qemu/step_convert_disk.go | 1 - builder/qemu/step_copy_disk.go | 1 - 2 files changed, 2 deletions(-) diff --git a/builder/qemu/step_convert_disk.go b/builder/qemu/step_convert_disk.go index 6044388d5..5017470fc 100644 --- a/builder/qemu/step_convert_disk.go +++ b/builder/qemu/step_convert_disk.go @@ -38,7 +38,6 @@ func (s *stepConvertDisk) Run(state multistep.StateBag) multistep.StepAction { } command = append(command, []string{ - "-f", config.Format, "-O", config.Format, sourcePath, targetPath, diff --git a/builder/qemu/step_copy_disk.go b/builder/qemu/step_copy_disk.go index 69383068d..e5d53fa56 100644 --- a/builder/qemu/step_copy_disk.go +++ b/builder/qemu/step_copy_disk.go @@ -22,7 +22,6 @@ func (s *stepCopyDisk) Run(state multistep.StateBag) multistep.StepAction { command := []string{ "convert", - "-f", config.Format, "-O", config.Format, isoPath, path,