* 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
29 lines
668 B
Bash
Executable File
29 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# Name of the file to write out
|
|
name="${0%.sh}"
|
|
|
|
baseurl="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso"
|
|
checksums="$(mktemp)"
|
|
until curl -f -L "${baseurl}.SHA256SUM" > "${checksums}"; do
|
|
sleep 1
|
|
done
|
|
sha="$(awk '/SHA256/ {print $4}' "${checksums}")"
|
|
rm "${checksums}"
|
|
|
|
cat << HERPDERP > "${name}"
|
|
distro = "centos-stream"
|
|
version = "9"
|
|
iso = {
|
|
url = "${baseurl}"
|
|
checksum = "${sha}"
|
|
}
|
|
boot_command = [
|
|
"<up><tab><wait><bs><bs><bs><bs><bs>",
|
|
"inst.text <wait>inst.ks=cdrom:/ks.cfg <wait>console=tty0",
|
|
"<enter><wait>"
|
|
]
|
|
cd_files = [ "distros/centos-stream/9/disc/*" ]
|
|
HERPDERP |