mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add NetBSD
This commit is contained in:
parent
45eaaa08c2
commit
bd87f98224
2 changed files with 27 additions and 3 deletions
|
@ -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)
|
||||
|
|
27
quickget
27
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=""
|
||||
|
|
Loading…
Reference in a new issue