Added support for Regolith Linux (#190)

* Added support for Regolith Linux

* merge conflicts resolved

* small tidy of dross and whitespace
pull/213/head
Phil Clifford 3 years ago committed by GitHub
parent 55b3b1a2dd
commit b44d6228ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 48
      quickget

@ -33,6 +33,7 @@ comprehensive support for macOS and Windows**.
* [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** * [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)**
* [Fedora](https://getfedora.org/) & openSUSE ([Leap](https://get.opensuse.org/leap/), [Tumbleweed](https://get.opensuse.org/tumbleweed/), [MicroOS](https://microos.opensuse.org/)) * [Fedora](https://getfedora.org/) & openSUSE ([Leap](https://get.opensuse.org/leap/), [Tumbleweed](https://get.opensuse.org/tumbleweed/), [MicroOS](https://microos.opensuse.org/))
* [Linux Mint](https://linuxmint.com/) (Cinnamon, MATE, and XFCE), [elementary OS](https://elementary.io/), [Pop!_OS](https://pop.system76.com/) * [Linux Mint](https://linuxmint.com/) (Cinnamon, MATE, and XFCE), [elementary OS](https://elementary.io/), [Pop!_OS](https://pop.system76.com/)
* [Regolith Linux](https://regolith-linux.org/) (Release 1.6 and latest 2.0.0 pre-release )
* [Arch Linux](https://www.archlinux.org/), [Kali](https://www.kali.org/), [ZorinOS](https://zorin.com/os/) & [NixOS](https://nixos.org/) * [Arch Linux](https://www.archlinux.org/), [Kali](https://www.kali.org/), [ZorinOS](https://zorin.com/os/) & [NixOS](https://nixos.org/)
* [FreeBSD](https://www.freebsd.org/) & [OpenBSD](https://www.openbsd.org/) * [FreeBSD](https://www.freebsd.org/) & [OpenBSD](https://www.openbsd.org/)
* Full SPICE support including host/guest clipboard sharing * Full SPICE support including host/guest clipboard sharing
@ -177,6 +178,7 @@ preferred flavour.
* `linuxmint-xfce` * `linuxmint-xfce`
* `opensuse` * `opensuse`
* `popos` * `popos`
* `regolith`
* `nixos-gnome` * `nixos-gnome`
* `nixos-plasma5` * `nixos-plasma5`
* `nixos-minimal` * `nixos-minimal`

@ -49,6 +49,7 @@ function pretty_name() {
openbsd) PRETTY_NAME="OpenBSD";; openbsd) PRETTY_NAME="OpenBSD";;
opensuse) PRETTY_NAME="openSUSE";; opensuse) PRETTY_NAME="openSUSE";;
popos) PRETTY_NAME="Pop!_OS";; popos) PRETTY_NAME="Pop!_OS";;
regolith) PRETTY_NAME="Regolith Linux";;
rockylinux) PRETTY_NAME="Rocky Linux";; rockylinux) PRETTY_NAME="Rocky Linux";;
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";; ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
ubuntu-kylin) PRETTY_NAME="Ubuntu Kylin";; ubuntu-kylin) PRETTY_NAME="Ubuntu Kylin";;
@ -149,6 +150,7 @@ function os_support() {
openbsd \ openbsd \
opensuse \ opensuse \
popos \ popos \
regolith \
rockylinux \ rockylinux \
solus \ solus \
ubuntu \ ubuntu \
@ -237,6 +239,14 @@ function releases_popos() {
21.04 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() { function releases_rockylinux() {
echo 8.4 \ echo 8.4 \
8.3 \ 8.3 \
@ -636,6 +646,9 @@ function make_vm_config() {
elif [ "${OS}" == "popos" ]; then elif [ "${OS}" == "popos" ]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
elif [ "${OS}" == "regolith" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [ "${OS}" == "rockylinux" ]; then elif [ "${OS}" == "rockylinux" ]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
@ -1044,6 +1057,37 @@ function get_popos() {
make_vm_config "${ISO}" 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() { function get_ubuntu() {
local DEVEL="daily-live" local DEVEL="daily-live"
local ISO="" local ISO=""
@ -1235,6 +1279,8 @@ if [ -n "${2}" ]; then
fi fi
VM_PATH="${OS}-${RELEASE}-${DRIVER}" VM_PATH="${OS}-${RELEASE}-${DRIVER}"
get_popos "${DRIVER}" get_popos "${DRIVER}"
elif [ "${OS}" == "regolith" ]; then
get_regolith
elif [ "${OS}" == "rockylinux" ]; then elif [ "${OS}" == "rockylinux" ]; then
if [ -n "${3}" ]; then if [ -n "${3}" ]; then
ISOTYPE="${3}" ISOTYPE="${3}"
@ -1300,6 +1346,8 @@ else
releases_macos releases_macos
elif [ "${OS}" == "popos" ]; then elif [ "${OS}" == "popos" ]; then
releases_popos releases_popos
elif [ "${OS}" == "regolith" ]; then
releases_regolith
elif [ "${OS}" == "solus" ]; then elif [ "${OS}" == "solus" ]; then
releases_solus releases_solus
elif [[ "${OS}" == *"ubuntu"* ]]; then elif [[ "${OS}" == *"ubuntu"* ]]; then

Loading…
Cancel
Save