30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
# Template file for 'truenas-core'
|
||
OSNAME="truenas-core"
|
||
PRETTY="TrueNAS Core"
|
||
BASEDOF="FreeBSD"
|
||
HOMEPAGE="https://www.truenas.com/truenas-core"
|
||
DESCRIPTION="World’s most popular storage OS because it gives you the power to build your own professional-grade storage system to use in a variety of data-intensive applications without any software costs"
|
||
CREDENTIALS="-"
|
||
GUEST="truenas"
|
||
|
||
function releases_() {
|
||
echo 13
|
||
}
|
||
|
||
function get_() {
|
||
local ISO=""
|
||
local URL=""
|
||
local DLINFO="https://www.truenas.com/download-truenas-core/"
|
||
URL=$(web_pipe "${DLINFO}" | grep -o "\"https://.*${RELEASE}.*\.iso\"" | cut -d'"' -f 2)
|
||
HASH=$(web_pipe "${URL}".sha256 | cut -d' ' -f1)
|
||
echo "${URL} ${HASH}"
|
||
}
|
||
|
||
function specific_tweaks() {
|
||
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
||
# the rest is non-functional
|
||
# echo "bootdrive_size=\"5G\"" >> "${CONF_FILE}" # boot drive
|
||
# echo "1stdrive_size=\"20G\"" >> "${CONF_FILE}" # for testing
|
||
# echo "2nddrive_size=\"20G\"" >> "${CONF_FILE}" # again, for testing
|
||
}
|