Skip to content

Commit

Permalink
- ubuntu: set bootindex=1 for packer-cloudimg
Browse files Browse the repository at this point in the history
Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron committed Mar 20, 2024
1 parent c3b1bb9 commit 56ad43c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ubuntu/ubuntu-cloudimg.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ source "qemu" "cloudimg" {
["-device", "virtio-gpu-pci"],
["-drive", "if=pflash,format=raw,id=ovmf_code,readonly=on,file=/usr/share/${lookup(local.uefi_dir, var.architecture, "")}/${lookup(local.uefi_imp, var.architecture, "")}_CODE.fd"],
["-drive", "if=pflash,format=raw,id=ovmf_vars,file=${lookup(local.uefi_imp, var.architecture, "")}_VARS.fd"],
["-drive", "file=output-cloudimg/packer-cloudimg,format=qcow2"],
["-drive", "file=seeds-cloudimg.iso,format=raw"]
["-drive", "file=output-cloudimg/packer-cloudimg,format=qcow2,if=none,id=disk1"],
["-device", "virtio-blk-pci,drive=disk1,bootindex=1"],
["-drive", "file=seeds-cloudimg.iso,format=raw,if=none,id=disk2"],
["-device", "virtio-blk-pci,drive=disk2"]
]
shutdown_command = "sudo -S shutdown -P now"
ssh_handshake_attempts = 500
Expand Down

0 comments on commit 56ad43c

Please sign in to comment.