Added support for Regolith Linux (#190)

* Added support for Regolith Linux

* merge conflicts resolved

* small tidy of dross and whitespace
This commit is contained in:
Phil Clifford 2021-11-08 00:10:02 +00:00 committed by GitHub
parent 55b3b1a2dd
commit b44d6228ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -49,6 +49,7 @@ function pretty_name() {
openbsd) PRETTY_NAME="OpenBSD";;
opensuse) PRETTY_NAME="openSUSE";;
popos) PRETTY_NAME="Pop!_OS";;
regolith) PRETTY_NAME="Regolith Linux";;
rockylinux) PRETTY_NAME="Rocky Linux";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
ubuntu-kylin) PRETTY_NAME="Ubuntu Kylin";;
@ -149,6 +150,7 @@ function os_support() {
openbsd \
opensuse \
popos \
regolith \
rockylinux \
solus \
ubuntu \
@ -237,6 +239,14 @@ function releases_popos() {
21.04
}
function releases_regolith() {
echo 1.6.0_hirsute \
1.6.0_focal \
2.0.0_impish \
2.0.0_hirsute
}
function releases_rockylinux() {
echo 8.4 \
8.3 \
@ -636,6 +646,9 @@ function make_vm_config() {
elif [ "${OS}" == "popos" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [ "${OS}" == "regolith" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [ "${OS}" == "rockylinux" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
@ -1044,6 +1057,37 @@ function get_popos() {
make_vm_config "${ISO}"
}
function get_regolith() {
local HASH=""
local ISO=""
local URL=""
local GHDL="https://github.com/regolith-linux/regolith-ubuntu-iso-builder/releases/download/"
validate_release "releases_regolith"
URL="${GHDL}"
case ${RELEASE} in
1.6.0_focal)
URL="${URL}release-release-focal-focal_standard-1.6.0"
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1);;
1.6.0_hirsute)
URL="${URL}release-release-hirsute-hirsute_standard-1.6.0"
HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1);;
2.0.0_impish)
URL="${URL}regolith-linux-2.0-impish-latest";;
2.0.0_hirsute)
URL="${URL}regolith-linux-2.0-hirsute-latest";;
esac
ISO="Regolith_"${RELEASE}".iso"
web_get "${URL}/${ISO}" "${VM_PATH}"
if [ -n $HASH ]; then
check_hash "${ISO}" "${HASH}"
fi
make_vm_config "${ISO}"
}
function get_ubuntu() {
local DEVEL="daily-live"
local ISO=""
@ -1235,6 +1279,8 @@ if [ -n "${2}" ]; then
fi
VM_PATH="${OS}-${RELEASE}-${DRIVER}"
get_popos "${DRIVER}"
elif [ "${OS}" == "regolith" ]; then
get_regolith
elif [ "${OS}" == "rockylinux" ]; then
if [ -n "${3}" ]; then
ISOTYPE="${3}"
@ -1300,6 +1346,8 @@ else
releases_macos
elif [ "${OS}" == "popos" ]; then
releases_popos
elif [ "${OS}" == "regolith" ]; then
releases_regolith
elif [ "${OS}" == "solus" ]; then
releases_solus
elif [[ "${OS}" == *"ubuntu"* ]]; then