DistroHopper/public/grml
2026-11-29 05:46:38 +01:00

79 lines
1.9 KiB
Text

# Template file for 'grml'
OSNAME="grml"
PRETTY="GRML"
LOGO=""
ICON=""
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/grml.png"
CATEGORY="Rescue"
BASEDOF="Debian"
DESCRIPTION="Bootable live system for system administrators, rescue and deployment"
HOMEPAGE="https://grml.org/"
CREDENTIALS="root:linux"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
RELEASES="2026.09 2026.04 unstable testing"
EDITIONS="full small"
EDITIONS_LIST="full
small"
QEMU_ARCH="amd64 arm64"
releases_() {
echo $(web_pipe "https://download.grml.org/" | grep -oE 'grml-20[0-9]{2}\.[0-9]{2}-' | sed 's/grml-//; s/-//' | sort -uVr | head -n 5) testing unstable
}
editions_() {
echo small full
}
arch_() {
echo amd64 arm64
}
get_() {
local HASH=""
local SUMS=""
local QEMU_ARCH
QEMU_ARCH=$(_qarch_to_upstream "${ARCH:-amd64}")
if [ "$RELEASE" = unstable ] || [ "$RELEASE" = testing ]; then
local URL="https://daily.grml.org/grml-${EDITION}-${ARCH:-amd64}-${RELEASE}/latest"
local ISO="grml-${EDITION}-${ARCH:-amd64}-${RELEASE}_latest.iso"
else
local URL="https://download.grml.org"
local ISO="grml-${EDITION}-${RELEASE}-${ARCH:-amd64}.iso"
fi
SUMS=$(web_pipe "https://download.grml.org/SHA256SUMS-${RELEASE}")
SIGNATURE="${ISO}.asc"
SIGN_KEY=$(web_pipe "${URL}/download/gnupg-michael-prokop.txt")
HASH=$(echo "${SUMS}" | grep "${ISO}" | awk '{print $1}')
echo "${URL}/${ISO} ${HASH}"
}
releases_() {
# Releases parsed at generation time — no network access needed.
echo "${RELEASES}"
}
editions_() {
# Editions parsed at generation time — no network access needed.
local _scoped=""
if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then
_scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}")
fi
if [ -n "${_scoped}" ]; then
echo "${_scoped}"
return 0
fi
local _per_arch="EDITIONS_${ARCH:-}"
if [ -n "${!_per_arch:-}" ]; then
echo "${!_per_arch}"
return 0
fi
echo "${EDITIONS:-}"
}