From 87b80962783979958640c88654d8b7615bc0aa6a Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Fri, 2 Aug 2024 18:18:33 +0300 Subject: [PATCH] fix: add default checksum for centos9-stream (#254) - Add the default checksum URL - Fix the `iso_checksum` assignment from the variable Resolves GH: #253 --- centos9-stream/centos9-stream.pkr.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centos9-stream/centos9-stream.pkr.hcl b/centos9-stream/centos9-stream.pkr.hcl index 76fe801..e33a7d8 100644 --- a/centos9-stream/centos9-stream.pkr.hcl +++ b/centos9-stream/centos9-stream.pkr.hcl @@ -21,7 +21,7 @@ variable "centos9_stream_iso_url" { variable "centos9_stream_sha256sum_url" { type = string - default = "none" + default = "https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso.SHA256SUM" } # use can use "--url" to specify the exact url for os repo @@ -78,7 +78,7 @@ source "qemu" "centos9-stream" { communicator = "none" disk_size = "4G" headless = true - iso_checksum = var.centos9_stream_sha256sum_url + iso_checksum = "file:${var.centos9_stream_sha256sum_url}" iso_url = var.centos9_stream_iso_url memory = 2048 qemuargs = [["-serial", "stdio"], ["-cpu", "host"]]