Files
vms/distros/centos-stream/8/amd64.pkrvars.hcl.sh
T

28 lines
681 B
Bash
Raw Normal View History

2023-08-10 14:10:58 -05:00
#!/usr/bin/env bash
2023-08-11 20:36:18 -05:00
set -ex
2023-08-10 14:10:58 -05:00
# Name of the file to write out
name="${0%.sh}"
checksums="$(mktemp)"
until curl -f -L -o "${checksums}" "http://mirror.centos.org/centos/8-stream/isos/x86_64/CHECKSUM"; do
sleep 1
done
sha="$(cat "${checksums}" | grep latest-boot | grep SHA256 | cut -d' ' -f 4)"
cat << HERPDERP > "${name}"
2023-08-22 00:18:02 -05:00
distro = "centos-stream"
version = "8"
2023-08-10 14:10:58 -05:00
iso = {
url = "http://mirror.centos.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>"
]
2023-08-11 20:36:18 -05:00
cd_files = [ "distros/centos-stream/8/disc/*" ]
2023-08-10 14:10:58 -05:00
HERPDERP