DistroHopper/public/easyos
2026-04-17 00:19:15 +02:00

36 lines
1.1 KiB
Text

# Template file for 'easyos'
OSNAME="easyos"
PRETTY="EasyOS"
BASEDOF="-"
DESCRIPTION="Experimental distribution designed from scratch to support containers"
HOMEPAGE="https://easyos.org"
CREDENTIALS="-"
IMAGE_TYPE="img"
RELEASES="5.9 5.8.5"
function get_() {
local HASH=""
local URL=""
local ISO=""
local YEAR=""
ISO="easy-${RELEASE}-amd64.img"
TWO_YEARS=$(web_pipe https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/ | grep -o -E '[[:digit:]]{4}/' | sort -nr | tr -d / | head -n 2 )
for YEAR in ${TWO_YEARS} ; do
if web_check "https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}/" ; then
URL="https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}"
HASH=$(web_pipe "${URL}/md5.sum.txt" | cut -d' ' -f1)
break
fi
done
echo "${URL}/${ISO} ${HASH}"
}
function distro_specific() {
if [[ ${ISO} = *".img"* ]]; then
${QEMU_IMG} convert -f raw -O qcow2 "${VM_PATH}/${ISO}" "${VM_PATH}/disk.qcow2"
ISO="${ISO/.img/}"
fi
}