Skip to content

Commit

Permalink
fix mount of downloaded iso in qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaimi authored Feb 28, 2024
1 parent 97c6164 commit d8d17e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packer_templates/pkr-sources.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ locals {
qemuargs = var.qemuargs == null ? (
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/packer-${var.os_name}-${var.os_version}-${var.os_arch}-qemu/{{ .Name }},if=virtio,cache=writeback,discard=ignore,format=qcow2,index=1"],
] : (
var.os_arch == "aarch64" ? [
Expand Down

0 comments on commit d8d17e7

Please sign in to comment.