diff --git a/arch-template.json b/arch-template.json index dc32c40..e36b8d6 100644 --- a/arch-template.json +++ b/arch-template.json @@ -1,7 +1,7 @@ { "variables": { - "iso_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/archlinux-{{isotime \"2006.01\"}}.01-x86_64.iso", - "iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/sha1sums.txt", + "iso_url": "https://mirrors.kernel.org/archlinux/iso/latest/archlinux-x86_64.iso", + "iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/latest/sha256sums.txt", "ssh_timeout": "20m", "country": "US", "write_zeros": "true", diff --git a/wrapacker b/wrapacker index 64aaefd..4595a62 100755 --- a/wrapacker +++ b/wrapacker @@ -278,8 +278,8 @@ else country='US' fi -ISO_CHECKSUM_URL="${MIRROR}/iso/latest/sha1sums.txt" -ISO_NAME=$(curl -sL "$ISO_CHECKSUM_URL" | awk '/-x86_64.iso/{ print $2 }') +ISO_CHECKSUM_URL="${MIRROR}/iso/latest/sha256sums.txt" +ISO_NAME=$(curl -sL "$ISO_CHECKSUM_URL" | awk '/-x86_64.iso/{ print $2 }' | tail -n 1) ISO_URL="${MIRROR}/iso/latest/${ISO_NAME}" if [[ $timeout ]]; then