|
|
@ -53,6 +53,7 @@ function pretty_name() { |
|
|
|
linuxmint) PRETTY_NAME="Linux Mint";; |
|
|
|
linuxmint) PRETTY_NAME="Linux Mint";; |
|
|
|
mxlinux) PRETTY_NAME="MX Linux";; |
|
|
|
mxlinux) PRETTY_NAME="MX Linux";; |
|
|
|
netboot) PRETTY_NAME="netboot.xyz";; |
|
|
|
netboot) PRETTY_NAME="netboot.xyz";; |
|
|
|
|
|
|
|
netbsd) PRETTY_NAME="NetBSD";; |
|
|
|
nixos) PRETTY_NAME="NixOS";; |
|
|
|
nixos) PRETTY_NAME="NixOS";; |
|
|
|
macos) PRETTY_NAME="macOS";; |
|
|
|
macos) PRETTY_NAME="macOS";; |
|
|
|
openbsd) PRETTY_NAME="OpenBSD";; |
|
|
|
openbsd) PRETTY_NAME="OpenBSD";; |
|
|
@ -184,6 +185,7 @@ function os_support() { |
|
|
|
manjaro \ |
|
|
|
manjaro \ |
|
|
|
mxlinux \ |
|
|
|
mxlinux \ |
|
|
|
netboot \ |
|
|
|
netboot \ |
|
|
|
|
|
|
|
netbsd \ |
|
|
|
nixos \ |
|
|
|
nixos \ |
|
|
|
lubuntu \ |
|
|
|
lubuntu \ |
|
|
|
macos \ |
|
|
|
macos \ |
|
|
@ -352,7 +354,6 @@ function editions_haiku() { |
|
|
|
x86_gcc2h |
|
|
|
x86_gcc2h |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_kali() { |
|
|
|
function releases_kali() { |
|
|
|
echo latest \ |
|
|
|
echo latest \ |
|
|
|
weekly |
|
|
|
weekly |
|
|
@ -412,6 +413,12 @@ function releases_netboot() { |
|
|
|
echo latest |
|
|
|
echo latest |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_netbsd() { |
|
|
|
|
|
|
|
echo 9.2 \ |
|
|
|
|
|
|
|
9.1 \ |
|
|
|
|
|
|
|
9.0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_nixos(){ |
|
|
|
function releases_nixos(){ |
|
|
|
echo 21.05 \ |
|
|
|
echo 21.05 \ |
|
|
|
21.11 |
|
|
|
21.11 |
|
|
@ -700,6 +707,9 @@ function make_vm_config() { |
|
|
|
macos) |
|
|
|
macos) |
|
|
|
GUEST="macos" |
|
|
|
GUEST="macos" |
|
|
|
IMAGE_TYPE="img";; |
|
|
|
IMAGE_TYPE="img";; |
|
|
|
|
|
|
|
netbsd) |
|
|
|
|
|
|
|
GUEST="netbsd" |
|
|
|
|
|
|
|
IMAGE_TYPE="iso";; |
|
|
|
openbsd) |
|
|
|
openbsd) |
|
|
|
GUEST="openbsd" |
|
|
|
GUEST="openbsd" |
|
|
|
IMAGE_TYPE="iso";; |
|
|
|
IMAGE_TYPE="iso";; |
|
|
@ -731,7 +741,7 @@ EOF |
|
|
|
# OS specific tweaks |
|
|
|
# OS specific tweaks |
|
|
|
case ${OS} in |
|
|
|
case ${OS} in |
|
|
|
alma|cachyos|garuda|oraclelinux|rockylinux|void|zorin) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; |
|
|
|
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}";; |
|
|
|
macos) echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}";; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
@ -1224,6 +1234,19 @@ function get_netboot() { |
|
|
|
make_vm_config "${ISO}" |
|
|
|
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() { |
|
|
|
function get_nixos() { |
|
|
|
local EDITION="" |
|
|
|
local EDITION="" |
|
|
|
local HASH="" |
|
|
|
local HASH="" |
|
|
|