|
|
@ -109,6 +109,7 @@ function os_support() { |
|
|
|
linuxmint-xfce \ |
|
|
|
linuxmint-xfce \ |
|
|
|
lubuntu \ |
|
|
|
lubuntu \ |
|
|
|
macos \ |
|
|
|
macos \ |
|
|
|
|
|
|
|
openbsd \ |
|
|
|
opensuse \ |
|
|
|
opensuse \ |
|
|
|
popos \ |
|
|
|
popos \ |
|
|
|
ubuntu \ |
|
|
|
ubuntu \ |
|
|
@ -139,6 +140,10 @@ function releases_linuxmint(){ |
|
|
|
echo 20.2 |
|
|
|
echo 20.2 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_openbsd(){ |
|
|
|
|
|
|
|
echo 7_0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_opensuse(){ |
|
|
|
function releases_opensuse(){ |
|
|
|
echo 15.0 \ |
|
|
|
echo 15.0 \ |
|
|
|
15.1 \ |
|
|
|
15.1 \ |
|
|
@ -509,6 +514,9 @@ function make_vm_config() { |
|
|
|
elif [[ "${OS}" == *"linuxmint"* ]]; then |
|
|
|
elif [[ "${OS}" == *"linuxmint"* ]]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
|
|
|
|
elif [[ "${OS}" == "openbsd" ]]; then |
|
|
|
|
|
|
|
GUEST="openbsd" |
|
|
|
|
|
|
|
IMAGE_TYPE="iso" |
|
|
|
elif [ "${OS}" == "opensuse" ]; then |
|
|
|
elif [ "${OS}" == "opensuse" ]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
@ -611,6 +619,29 @@ function get_linuxmint() { |
|
|
|
make_vm_config "${ISO}" |
|
|
|
make_vm_config "${ISO}" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_openbsd() { |
|
|
|
|
|
|
|
local URL="" |
|
|
|
|
|
|
|
local DL_BASE="https://cdn.openbsd.org/pub/OpenBSD/7.0/amd64/" |
|
|
|
|
|
|
|
local VERSION="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ${RELEASE} in |
|
|
|
|
|
|
|
7_0) VERSION=${RELEASE//_/};; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
echo "ERROR! OpenBSD ${RELEASE} is not a supported release." |
|
|
|
|
|
|
|
releases_openbsd |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
URL="${DL_BASE}/install${VERSION}.iso" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISO="install${VERSION}.iso" |
|
|
|
|
|
|
|
make_vm_dir |
|
|
|
|
|
|
|
web_get ${URL} ${VM_PATH} |
|
|
|
|
|
|
|
make_vm_config ${ISO} |
|
|
|
|
|
|
|
start_vm_info |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_opensuse() { |
|
|
|
function get_opensuse() { |
|
|
|
local ISO="" |
|
|
|
local ISO="" |
|
|
|
local RELEASES="" |
|
|
|
local RELEASES="" |
|
|
@ -902,6 +933,8 @@ else |
|
|
|
releases_linuxmint |
|
|
|
releases_linuxmint |
|
|
|
elif [ "${OS}" == "opensuse" ]; then |
|
|
|
elif [ "${OS}" == "opensuse" ]; then |
|
|
|
releases_opensuse |
|
|
|
releases_opensuse |
|
|
|
|
|
|
|
elif [ "${OS}" == "openbsd" ]; then |
|
|
|
|
|
|
|
releases_openbsd |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
releases_macos |
|
|
|
releases_macos |
|
|
|
elif [ "${OS}" == "popos" ]; then |
|
|
|
elif [ "${OS}" == "popos" ]; then |
|
|
|