# Template file for 'centos-stream' OSNAME="centos-stream" PRETTY="CentOS Stream" LOGO=" " ICON="centos-stream.svg" CATEGORY="advanced" BASEDOF="Fedora RHEL" HOMEPAGE="https://www.centos.org/centos-stream" DESCRIPTION="Continuously delivered distro that tracks just ahead of Red Hat Enterprise Linux (RHEL) development, positioned as a midstream between Fedora Linux and RHEL" CREDENTIALS="-" GPG="" RSS="" DW="" # The official CentOS Stream mirror. The layout is # /-stream/BaseOS//iso/ # where is the upstream architecture name. BASE_URL="https://mirror.stream.centos.org" function releases_() { # The mirror root lists the available stream releases. Each release is # listed more than once, so the versions have to be deduplicated. #shellcheck disable=SC2046,SC2005 echo $(web_pipe "${BASE_URL}/" \ | grep -oE '[0-9]+-stream/' \ | cut -d'-' -f1 \ | sort -Vr \ | uniq) } function editions_() { echo boot dvd1 } function arch_() { echo amd64 arm64 } function get_() { local HASH="" local ISO="" local URL="" local UPSTREAM_ARCH="" UPSTREAM_ARCH=$(_qarch_to_upstream "${ARCH:-amd64}") URL="${BASE_URL}/${RELEASE}-stream/BaseOS/${UPSTREAM_ARCH}/iso" ISO="CentOS-Stream-${RELEASE}-latest-${UPSTREAM_ARCH}-${EDITION}.iso" HASH=$(web_pipe "${URL}/${ISO}.SHA256SUM" \ | grep "SHA256 (${ISO}" \ | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" } function config_() { echo "disk_size=\"32G\"" >> "${CONF_FILE}" }