From 456333ef382ab1b9ed81ec8b8aebb779cb17c24b Mon Sep 17 00:00:00 2001 From: Alan Janis Date: Fri, 10 May 2024 22:12:26 +0000 Subject: [PATCH] fix architecture var --- cableos/cableos-installer.pkr.hcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cableos/cableos-installer.pkr.hcl b/cableos/cableos-installer.pkr.hcl index 6fc4c50..ce96456 100644 --- a/cableos/cableos-installer.pkr.hcl +++ b/cableos/cableos-installer.pkr.hcl @@ -113,13 +113,13 @@ source "qemu" "cableos" { iso_checksum = "none" iso_url = "build_images/${var.live_iso}" memory = 2048 - qemu_binary = "qemu-system-${lookup(local.qemu_arch, var.architecture, "")}" + qemu_binary = "qemu-system-${lookup(local.qemu_arch, local.qemu_arch, "")}" qemu_img_args { create = ["-F", "qcow2"] } qemuargs = [ - ["-machine", "${lookup(local.qemu_machine, var.architecture, "")}"], - ["-cpu", "${lookup(local.qemu_cpu, var.architecture, "")}"], + ["-machine", "${lookup(local.qemu_machine, local.qemu_arch, "")}"], + ["-cpu", "${lookup(local.qemu_cpu, local.qemu_arch, "")}"], ["-device", "virtio-gpu-pci"], ["-drive", "file=output-cableos-installer/${var.base_filename},format=qcow2"], ]