# Template file for 'rockylinux' OSNAME="rockylinux" PRETTY="Rocky Linux" LOGO=" " ICON="rocky.svg" ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/rocky.png" CATEGORY="Desktop, Server" BASEDOF="RHEL" DESCRIPTION="Open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux" HOMEPAGE="https://rockylinux.org" CREDENTIALS="-" GPG="" RSS="" DW="" MAGNET="" CHAT="" RELEASES="9.7 9.6 9.5 9.4 9.3 9.2 9.1 9.0 8.9 8.8 8.7 8.6 8.5 8.4 8.10" EDITIONS="boot dvd minimal" QEMU_ARCH="amd64 arm64 ppc64el riscv64 s390x" releases_() { # Get all available versions from download directory echo $(web_pipe "https://download.rockylinux.org/pub/rocky/" | grep -o '>[0-9]\.[0-9]*/' | tr -d '>/' | sort -Vr) } editions_() { echo minimal dvd boot } arch_() { echo amd64 arm64 ppc64el riscv64 s390x } get_() { if [[ "${RELEASE}" =~ ^8. ]] && [[ "${EDITION}" == "dvd" ]]; then EDITION="dvd1" fi local HASH="" local QEMU_ARCH QEMU_ARCH=$(_qarch_to_upstream "${ARCH:-amd64}") local ISO="Rocky-${RELEASE}-${QEMU_ARCH}-${EDITION}.iso" local URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/${QEMU_ARCH}" HASH=$(web_pipe "${URL}/CHECKSUM" 2>/dev/null | grep "${ISO}" | grep SHA256 | cut -d' ' -f1) if [[ -z "$HASH" ]]; then HASH=$(web_pipe "${URL}/SHA256SUMS" 2>/dev/null | grep "${ISO}" | cut -d' ' -f1) fi echo "${URL}/${ISO} ${HASH}" } config_() { echo "disk_size=\"32G\"" >> "${CONF_FILE}" }