mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 09:32:21 +00:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# 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"
|
|
HOMEPAGE="https://rockylinux.org"
|
|
DESCRIPTION="Open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
|
|
function 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)
|
|
}
|
|
|
|
function editions_() {
|
|
echo minimal dvd boot
|
|
}
|
|
|
|
function arch_() {
|
|
echo amd64 arm64 ppc64el riscv64 s390x
|
|
}
|
|
|
|
function 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}"
|
|
}
|
|
|
|
function config_() {
|
|
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
|
|
}
|