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:
parent
1560e15632
commit
20349f750d
|
@ -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,
|
||||
|
|
|
@ -22,7 +22,6 @@ func (s *stepCopyDisk) Run(state multistep.StateBag) multistep.StepAction {
|
|||
|
||||
command := []string{
|
||||
"convert",
|
||||
"-f", config.Format,
|
||||
"-O", config.Format,
|
||||
isoPath,
|
||||
path,
|
||||
|
|
Loading…
Reference in New Issue