Files
vms/distros/centos-stream/8/amd64.pkrvars.hcl.sh
T
Greg HellingsandGitHub ebbc8a7371 Hyperv (#14)
* Do not commit the .venv file

* Fix packer formatting issues

* I am, once again, asking to fix the cache path

* Fix URI generation for tests

* Prevent prompting during Hyper-V tests

* Add more waits to hopefully build on GHA

* Hyper-V ISO expansion

Expand coverage of Hyper-V ISO to all distros except Debian
Simplify a few steps in the update/upgrade process for VMs
Edit the test script for Windows support

* Fix plugin cache path on Mac

* Point to the correct mirror URL
2023-12-07 12:15:48 -06:00

28 lines
691 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
# Name of the file to write out
name="${0%.sh}"
checksums="$(mktemp)"
until curl -f -L "https://mirrors.edge.kernel.org/centos/8-stream/isos/x86_64/CHECKSUM" > "${checksums}"; do
sleep 1
done
sha="$(grep -e latest-boot "${checksums}" | grep SHA256 | cut -d' ' -f 4)"
cat << HERPDERP > "${name}"
distro = "centos-stream"
version = "8"
iso = {
url = "https://mirrors.edge.kernel.org/centos/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-latest-boot.iso"
checksum = "${sha}"
}
boot_command = [
"<up><tab><wait><bs><bs><bs><bs><bs>",
"inst.text inst.ks=cdrom:/ks.cfg console=tty0",
"<enter><wait>"
]
cd_files = [ "distros/centos-stream/8/disc/*" ]
HERPDERP