2024-04-16 14:21:00 -05:00
|
|
|
#!env bash
|
2023-08-10 14:10:58 -05:00
|
|
|
|
|
|
|
|
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)"
|
2023-12-07 12:15:48 -06:00
|
|
|
until curl -f -L "${baseurl}.SHA256SUM" > "${checksums}"; do
|
2023-08-10 14:10:58 -05:00
|
|
|
sleep 1
|
|
|
|
|
done
|
2023-12-06 08:21:32 -08:00
|
|
|
sha="$(awk '/SHA256/ {print $4}' "${checksums}")"
|
2023-08-10 14:10:58 -05:00
|
|
|
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 = [
|
2023-12-30 05:37:32 +00:00
|
|
|
"<up>e<wait>",
|
|
|
|
|
"<down><down><end><wait>",
|
|
|
|
|
" inst.text inst.ks=cdrom:/ks.cfg",
|
2024-07-13 00:18:40 -05:00
|
|
|
" inst.notmux console=tty0 console=ttyS0",
|
2023-12-30 05:37:32 +00:00
|
|
|
"<leftCtrlOn>x<leftCtrlOff>"
|
2023-08-10 14:10:58 -05:00
|
|
|
]
|
2023-08-11 20:36:18 -05:00
|
|
|
cd_files = [ "distros/centos-stream/9/disc/*" ]
|
2024-01-09 22:31:00 -06:00
|
|
|
vbox_os_type = "RedHat9_64"
|
2024-04-15 03:53:58 +00:00
|
|
|
HERPDERP
|
|
|
|
|
|
2024-04-16 14:21:00 -05:00
|
|
|
rm -f cache/CentOS-Stream-9-latest-x86_64-boot.iso
|