From 790c6269932ba5b03ae6ebbfc7a055bd221c630d Mon Sep 17 00:00:00 2001 From: Scott Travis Date: Sat, 23 Jul 2022 20:13:00 -0400 Subject: [PATCH] Add support for CentOS Stream (#464) * Add support for CentOS Stream Supports CentOS Stream releases 8 and 9, editions 'dvd1' and 'boot'. * Rename 'centos' to 'centos-stream' for clarity --- quickget | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index c85d01e..67a7ebc 100755 --- a/quickget +++ b/quickget @@ -36,6 +36,7 @@ function pretty_name() { archlinux) PRETTY_NAME="Arch Linux";; arcolinux) PRETTY_NAME="Arco Linux";; cachyos) PRETTY_NAME="CachyOS";; + centos-stream) PRETTY_NAME="CentOS Stream";; dragonflybsd) PRETTY_NAME="DragonFlyBSD";; elementary) PRETTY_NAME="elementary OS";; endeavouros) PRETTY_NAME="EndeavourOS";; @@ -163,6 +164,7 @@ function os_support() { arcolinux \ batocera \ cachyos \ + centos-stream \ debian \ devuan \ dragonflybsd \ @@ -243,6 +245,14 @@ function releases_cachyos() { echo 2022.01.09 2022.02.11 } +function releases_centos-stream() { + echo 8 9 +} + +function editions_centos-stream() { + echo dvd1 boot +} + function releases_debian() { echo 10.11.0 11.2.0 11.3.0 } @@ -721,7 +731,7 @@ EOF # OS specific tweaks case ${OS} in - alma|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; + alma|centos-stream|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; dragonflybsd|haiku|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";; freedos) echo "boot=\"legacy\"" >> "${CONF_FILE}" @@ -834,6 +844,25 @@ function get_cachyos() { echo "${URL}/${ISO} ${HASH}" } +function get_centos-stream() { + local HASH="" + local ISO="" + case ${RELEASE} in + 8) + ISO="CentOS-Stream-${RELEASE}-x86_64-latest-${EDITION}.iso" + URL="https://mirrors.ocf.berkeley.edu/centos/8-stream/isos/x86_64" + HASH=$(wget -q -O- ${URL}/CHECKSUM | grep "SHA256 (${ISO}" | cut -d' ' -f4) + ;; + 9) + ISO="CentOS-Stream-${RELEASE}-latest-x86_64-${EDITION}.iso" + URL="https://mirrors.ocf.berkeley.edu/centos-stream/9-stream/BaseOS/x86_64/iso" + HASH=$(wget -q -O- ${URL}/${ISO}.SHA256SUM | grep "SHA256 (${ISO}" | cut -d' ' -f4) + ;; + esac + + echo "${URL}/${ISO} ${HASH}" +} + function get_debian() { local EDITION="${1:-}" local HASH=""