DistroHopper/public/gentoo
2025-09-07 13:26:36 +00:00

28 lines
809 B
Text

# Template file for 'gentoo'
OSNAME="gentoo"
PRETTY="Gentoo"
BASEDOF="-"
DESCRIPTION="Highly flexible, source-based Linux distribution"
HOMEPAGE="https://www.gentoo.org"
CREDENTIALS="-"
RELEASES="latest"
EDITIONS="minimal livegui"
function get_() {
local HASH=""
local ISO=""
local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds"
case ${EDITION} in
minimal) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1);;
livegui) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep livegui | cut -d' ' -f1);;
esac
HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function specific_tweaks() {
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
}