Add CentOS Stream 10
This commit is contained in:
+34
@@ -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
|
||||
Reference in New Issue
Block a user