Skip to content

Commit

Permalink
fix image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanis committed May 10, 2024
1 parent 29401e0 commit 76693c9
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions cableos/cableos-installer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ source "qemu" "cableos-installer" {
qemuargs = [
["-machine", "${lookup(local.qemu_machine, var.architecture, "")}"],
["-cpu", "${lookup(local.qemu_cpu, var.architecture, "")}"],
["-device", "virtio-gpu-pci"],
["-drive", "file=output-cableos-installer/${var.base_filename},format=qcow2"],
["-device", "virtio-gpu-pci"]
]
shutdown_command = "sudo -S shutdown -P now"
ssh_handshake_attempts = 50
Expand Down Expand Up @@ -180,24 +179,9 @@ build {

// Create manifest of packer objects
post-processor "manifest" {
output = "manifest.json"
output = "${path.root}/manifest.json"
strip_path = true
}


# // Create .qcow and .iso images
# post-processor "qemu" {
# only = ["qemu"]
# output = "output-cableos-installer/${base_filename}.qcow"
# format = "qcow2"
# disk_interface = "virtio"
# }
# post-processor "shell-local" {
# inline = [
# "qemu-img convert -f qcow2 -O raw output-cableos-installer/${base_filename}.qcow output-cableos-installer/${base-filename}.img",
# "maas admin boot-resources create name=custom/new name_title='New Image' architecture=amd64/generic content@=new.img",
# "echo 'Packer Provisioning Complete'"

# ]
# }
}

0 comments on commit 76693c9

Please sign in to comment.