mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 09:32:21 +00:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Template file for 'truenas-scale'
|
|
OSNAME="truenas-scale"
|
|
PRETTY="TrueNAS Scale"
|
|
LOGO=""
|
|
ICON="truenas-scale.svg"
|
|
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/truenas.png"
|
|
CATEGORY="advanced"
|
|
BASEDOF="Debian"
|
|
HOMEPAGE="https://www.truenas.com/truenas-scale"
|
|
DESCRIPTION="Open Source Hyperconverged Infrastructure (HCI) solution. In addition to powerful scale-out storage capabilities, SCALE adds Linux Containers and VMs (KVM) so apps run closer to data"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
GUEST="truenas"
|
|
|
|
function releases_() {
|
|
echo ElectricEel Dragonfish
|
|
}
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
local URL=""
|
|
local BASE="https://download.sys.truenas.net/TrueNAS-SCALE-${RELEASE}"
|
|
local VERSION
|
|
VERSION=$(web_pipe "${BASE}/" | grep -oE '"[0-9]+\.[0-9]+\.[0-9.]+/"' | sort -Vr | head -1 | tr -d '"/')
|
|
[ -z "${VERSION}" ] && return
|
|
URL="${BASE}/${VERSION}/TrueNAS-SCALE-${VERSION}.iso"
|
|
HASH=$(web_pipe "${URL}.sha256" | awk '{print $1}')
|
|
echo "${URL} ${HASH}"
|
|
}
|
|
|
|
function config_() {
|
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
|
}
|