From 49f4d9e9f5f216afc57a1c5145eb0fc6dcc5af0d Mon Sep 17 00:00:00 2001 From: Daniel Widerin Date: Thu, 23 May 2024 16:35:23 +0200 Subject: [PATCH] Fix qemu_format="raw" causing wrong format for qemu (#1568) --- packer_templates/pkr-sources.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer_templates/pkr-sources.pkr.hcl b/packer_templates/pkr-sources.pkr.hcl index 1b0e9367c..58e48758a 100644 --- a/packer_templates/pkr-sources.pkr.hcl +++ b/packer_templates/pkr-sources.pkr.hcl @@ -43,7 +43,7 @@ locals { var.is_windows ? [ ["-drive", "file=${path.root}/../builds/iso/virtio-win.iso,media=cdrom,index=3"], ["-drive", "file=${var.iso_url},media=cdrom,index=2"], - ["-drive", "file=${path.root}/../builds/build_files/packer-${var.os_name}-${var.os_version}-${var.os_arch}-qemu/{{ .Name }},if=virtio,cache=writeback,discard=ignore,format=qcow2,index=1"], + ["-drive", "file=${path.root}/../builds/build_files/packer-${var.os_name}-${var.os_version}-${var.os_arch}-qemu/{{ .Name }},if=virtio,cache=writeback,discard=ignore,format=${var.qemu_format},index=1"], ] : ( var.os_arch == "aarch64" ? [ ["-boot", "strict=off"]