|
|
@ -45,6 +45,7 @@ function pretty_name() { |
|
|
|
freebsd) PRETTY_NAME="FreeBSD";; |
|
|
|
freebsd) PRETTY_NAME="FreeBSD";; |
|
|
|
gentoo) PRETTY_NAME="Gentoo";; |
|
|
|
gentoo) PRETTY_NAME="Gentoo";; |
|
|
|
garuda) PRETTY_NAME="Garuda Linux";; |
|
|
|
garuda) PRETTY_NAME="Garuda Linux";; |
|
|
|
|
|
|
|
haiku) PRETTY_NAME="Haiku";; |
|
|
|
kdeneon) PRETTY_NAME="KDE Neon";; |
|
|
|
kdeneon) PRETTY_NAME="KDE Neon";; |
|
|
|
kolibrios) PRETTY_NAME="KolibriOS";; |
|
|
|
kolibrios) PRETTY_NAME="KolibriOS";; |
|
|
|
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";; |
|
|
|
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";; |
|
|
@ -194,6 +195,7 @@ function os_support() { |
|
|
|
fedora \ |
|
|
|
fedora \ |
|
|
|
garuda \ |
|
|
|
garuda \ |
|
|
|
gentoo \ |
|
|
|
gentoo \ |
|
|
|
|
|
|
|
haiku \ |
|
|
|
kali \ |
|
|
|
kali \ |
|
|
|
kdeneon \ |
|
|
|
kdeneon \ |
|
|
|
kolibrios \ |
|
|
|
kolibrios \ |
|
|
@ -320,6 +322,11 @@ function releases_garuda() { |
|
|
|
cinnamon |
|
|
|
cinnamon |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_haiku() { |
|
|
|
|
|
|
|
echo r1beta3-x86_64 \ |
|
|
|
|
|
|
|
r1beta3-x86_gcc2h |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_kali() { |
|
|
|
function releases_kali() { |
|
|
|
echo latest \ |
|
|
|
echo latest \ |
|
|
|
weekly |
|
|
|
weekly |
|
|
@ -630,6 +637,9 @@ function make_vm_config() { |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
|
|
|
|
elif [ "${OS}" == "haiku" ]; then |
|
|
|
|
|
|
|
GUEST="haiku" |
|
|
|
|
|
|
|
IMAGE_TYPE="iso" |
|
|
|
elif [ "${OS}" == "kdeneon" ]; then |
|
|
|
elif [ "${OS}" == "kdeneon" ]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
@ -730,6 +740,11 @@ EOF |
|
|
|
echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${OS}" == "haiku" ]; then |
|
|
|
|
|
|
|
echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
|
|
|
|
echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ "${OS}" == "oraclelinux" ]; then |
|
|
|
if [ "${OS}" == "oraclelinux" ]; then |
|
|
|
echo "disk_size=\"20G\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
echo "disk_size=\"20G\"" >> "${OS}-${RELEASE}.conf" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -1476,6 +1491,21 @@ function get_garuda() { |
|
|
|
make_vm_config "${OS}-${RELEASE}.iso" |
|
|
|
make_vm_config "${OS}-${RELEASE}.iso" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_haiku() { |
|
|
|
|
|
|
|
local ISO="" |
|
|
|
|
|
|
|
local URL="" |
|
|
|
|
|
|
|
local HASH="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validate_release "releases_haiku" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISO="haiku-${RELEASE}-anyboot.iso" |
|
|
|
|
|
|
|
URL="https://cdn.haiku-os.org/haiku-release/$(echo $RELEASE | awk -F '-' '{print $1}')/${ISO}" |
|
|
|
|
|
|
|
HASH=$(wget -q -O- ${URL}.sha256 | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
|
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
|
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function unattended_windows() { |
|
|
|
function unattended_windows() { |
|
|
|
cat << 'EOF' > "${1}" |
|
|
|
cat << 'EOF' > "${1}" |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
@ -1952,6 +1982,8 @@ if [ -n "${2}" ]; then |
|
|
|
get_cachyos |
|
|
|
get_cachyos |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
get_gentoo |
|
|
|
get_gentoo |
|
|
|
|
|
|
|
elif [ "${OS}" == "haiku" ]; then |
|
|
|
|
|
|
|
get_haiku |
|
|
|
elif [ "${OS}" == "kali" ]; then |
|
|
|
elif [ "${OS}" == "kali" ]; then |
|
|
|
get_kali |
|
|
|
get_kali |
|
|
|
elif [ "${OS}" == "kdeneon" ]; then |
|
|
|
elif [ "${OS}" == "kdeneon" ]; then |
|
|
@ -2059,6 +2091,8 @@ else |
|
|
|
releases_cachyos |
|
|
|
releases_cachyos |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
elif [ "${OS}" == "gentoo" ]; then |
|
|
|
releases_gentoo |
|
|
|
releases_gentoo |
|
|
|
|
|
|
|
elif [ "${OS}" == "haiku" ]; then |
|
|
|
|
|
|
|
releases_haiku |
|
|
|
elif [ "${OS}" == "kali" ]; then |
|
|
|
elif [ "${OS}" == "kali" ]; then |
|
|
|
releases_kali |
|
|
|
releases_kali |
|
|
|
elif [ "${OS}" == "kolibrios" ]; then |
|
|
|
elif [ "${OS}" == "kolibrios" ]; then |
|
|
|