From bd87f98224b0569e4252e7a97e94648cd2de4355 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 22 Feb 2022 00:51:34 +0000 Subject: [PATCH] Add NetBSD --- README.md | 3 ++- quickget | 27 +++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d7d139..e09466a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 - [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** -- **And over 30 other operating systems are supported:** +- **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests @@ -229,6 +229,7 @@ Other Operating Systems - `manjaro` (Manjaro) - `mxlinux` (MX Linux) - `netboot` (netboot.xyz) +- `netbsd` (NetBSD) - `nixos` (NixOS) - `openbsd` (OpenBSD) - `opensuse` (openSUSE) diff --git a/quickget b/quickget index 4b5a2fb..3f4c40f 100755 --- a/quickget +++ b/quickget @@ -53,6 +53,7 @@ function pretty_name() { linuxmint) PRETTY_NAME="Linux Mint";; mxlinux) PRETTY_NAME="MX Linux";; netboot) PRETTY_NAME="netboot.xyz";; + netbsd) PRETTY_NAME="NetBSD";; nixos) PRETTY_NAME="NixOS";; macos) PRETTY_NAME="macOS";; openbsd) PRETTY_NAME="OpenBSD";; @@ -184,6 +185,7 @@ function os_support() { manjaro \ mxlinux \ netboot \ + netbsd \ nixos \ lubuntu \ macos \ @@ -352,7 +354,6 @@ function editions_haiku() { x86_gcc2h } - function releases_kali() { echo latest \ weekly @@ -412,6 +413,12 @@ function releases_netboot() { echo latest } +function releases_netbsd() { + echo 9.2 \ + 9.1 \ + 9.0 +} + function releases_nixos(){ echo 21.05 \ 21.11 @@ -700,6 +707,9 @@ function make_vm_config() { macos) GUEST="macos" IMAGE_TYPE="img";; + netbsd) + GUEST="netbsd" + IMAGE_TYPE="iso";; openbsd) GUEST="openbsd" IMAGE_TYPE="iso";; @@ -731,7 +741,7 @@ EOF # OS specific tweaks case ${OS} in alma|cachyos|garuda|oraclelinux|rockylinux|void|zorin) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; - haiku|kolibrios|openbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";; + haiku|kolibrios|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";; macos) echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}";; esac @@ -1224,6 +1234,19 @@ function get_netboot() { make_vm_config "${ISO}" } +function get_netbsd() { + local HASH="" + local ISO="" + local URL="" + + URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images/" + ISO="NetBSD-${RELEASE}-amd64.iso" + HASH=$(wget -q -O- "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4) + web_get "${URL}/${ISO}" "${VM_PATH}" + check_hash "${ISO}" "${HASH}" + make_vm_config "${ISO}" +} + function get_nixos() { local EDITION="" local HASH=""