2023-08-10 14:10:58 -05:00
|
|
|
#!/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 -o "${checksums}" "${baseurl}.SHA256SUM"; do
|
|
|
|
|
sleep 1
|
|
|
|
|
done
|
|
|
|
|
sha="$(cat "${checksums}" | awk '/SHA256/ {print $4}')"
|
|
|
|
|
rm "${checksums}"
|
|
|
|
|
|
|
|
|
|
cat << HERPDERP > "${name}"
|
2023-08-22 00:18:02 -05:00
|
|
|
distro = "centos-stream"
|
|
|
|
|
version = "9"
|
2023-08-10 14:10:58 -05:00
|
|
|
iso = {
|
|
|
|
|
url = "${baseurl}"
|
|
|
|
|
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/9/disc/*" ]
|
2023-08-10 14:10:58 -05:00
|
|
|
HERPDERP
|