Skip to content

Commit

Permalink
Fix qemu_format="raw" causing wrong format for qemu (chef#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
saily authored May 23, 2024
1 parent b34c9c6 commit 036e8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer_templates/pkr-sources.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 036e8d1

Please sign in to comment.