Add netboot.xyz. Closes #351

This commit is contained in:
Martin Wimpress 2022-02-21 16:41:26 +00:00
parent b9ca7a39f8
commit 596ffa86a6
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
2 changed files with 18 additions and 0 deletions

View File

@ -227,6 +227,7 @@ Other Operating Systems
- `linuxmint` (Linux Mint)
- `manjaro` (Manjaro)
- `mxlinux` (MX Linux)
- `netboot` (netboot.xyz)
- `nixos` (NixOS)
- `openbsd` (OpenBSD)
- `opensuse` (openSUSE)

View File

@ -51,6 +51,7 @@ function pretty_name() {
kolibrios) PRETTY_NAME="KolibriOS";;
linuxmint) PRETTY_NAME="Linux Mint";;
mxlinux) PRETTY_NAME="MX Linux";;
netboot) PRETTY_NAME="netboot.xyz";;
nixos) PRETTY_NAME="NixOS";;
macos) PRETTY_NAME="macOS";;
openbsd) PRETTY_NAME="OpenBSD";;
@ -180,6 +181,7 @@ function os_support() {
linuxmint \
manjaro \
mxlinux \
netboot \
nixos \
lubuntu \
macos \
@ -361,6 +363,10 @@ function releases_manjaro() {
mate
}
function releases_netboot() {
echo latest
}
function releases_nixos(){
echo 21.05 \
21.11
@ -1119,6 +1125,17 @@ function get_mxlinux() {
make_vm_config "${ISO}"
}
function get_netboot() {
local ISO="netboot.xyz.iso"
local HASH=""
local URL="https://boot.netboot.xyz/ipxe"
HASH=$(wget -q -O- "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
}
function get_nixos() {
local EDITION=""
local HASH=""