Add CentOS Stream 10

This commit is contained in:
Greg Hellings
2025-01-22 08:57:36 -06:00
parent 53f60334c6
commit 698d08741b
7 changed files with 223 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#!env bash
set -ex
# Name of the file to write out
name="${0%.sh}"
baseurl="https://mirror.stream.centos.org/10-stream/BaseOS/x86_64/iso/CentOS-Stream-10-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 = "10"
iso = {
url = "${baseurl}"
checksum = "${sha}"
}
boot_command = [
"<up>e<wait>",
"<down><down><end><wait>",
" inst.text inst.ks=cdrom:/ks.cfg",
" inst.notmux ",
"<leftCtrlOn>x<leftCtrlOff>"
]
cd_files = [ "distros/centos-stream/10/disc/*" ]
vbox_os_type = "RedHat10_64"
HERPDERP
rm -f cache/CentOS-Stream-10-latest-x86_64-boot.iso