|
|
@ -6,6 +6,7 @@ function os_support() { |
|
|
|
kubuntu \ |
|
|
|
kubuntu \ |
|
|
|
lubuntu \ |
|
|
|
lubuntu \ |
|
|
|
macos \ |
|
|
|
macos \ |
|
|
|
|
|
|
|
opensuse \ |
|
|
|
ubuntu \ |
|
|
|
ubuntu \ |
|
|
|
ubuntu-budgie \ |
|
|
|
ubuntu-budgie \ |
|
|
|
ubuntu-kylin \ |
|
|
|
ubuntu-kylin \ |
|
|
@ -26,6 +27,14 @@ function releases_fedora(){ |
|
|
|
35_beta |
|
|
|
35_beta |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_opensuse(){ |
|
|
|
|
|
|
|
echo 15_0 \ |
|
|
|
|
|
|
|
15_1 \ |
|
|
|
|
|
|
|
15_2 \ |
|
|
|
|
|
|
|
15_3 \ |
|
|
|
|
|
|
|
tumbleweed |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_macos() { |
|
|
|
function releases_macos() { |
|
|
|
echo high-sierra \ |
|
|
|
echo high-sierra \ |
|
|
|
mojave \ |
|
|
|
mojave \ |
|
|
@ -341,6 +350,9 @@ function make_vm_config() { |
|
|
|
elif [[ "${OS}" == *"fedora"* ]]; then |
|
|
|
elif [[ "${OS}" == *"fedora"* ]]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
|
|
|
|
elif [[ "${OS}" == *"opensuse"* ]]; then |
|
|
|
|
|
|
|
GUEST="linux" |
|
|
|
|
|
|
|
IMAGE_TYPE="iso" |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
@ -450,6 +462,34 @@ function get_fedora() { |
|
|
|
start_vm_info |
|
|
|
start_vm_info |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_opensuse() { |
|
|
|
|
|
|
|
# For future releases, use dvd1 iso files. |
|
|
|
|
|
|
|
local URL="" |
|
|
|
|
|
|
|
local DL_BASE="https://download.opensuse.org/" |
|
|
|
|
|
|
|
local VERSION="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ${RELEASE} in |
|
|
|
|
|
|
|
15_0|15_1|15_2|15_3|tumbleweed) VERSION=${RELEASE//_/.};; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
echo "ERROR! openSUSE ${RELEASE} is not a supported release." |
|
|
|
|
|
|
|
releases_opensuse |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${VERSION}" == "tumbleweed" ]; then |
|
|
|
|
|
|
|
ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso" |
|
|
|
|
|
|
|
URL="${DL_BASE}/tumbleweed/iso/${ISO}" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
ISO="openSUSE-Leap-${VERSION}-DVD-x86_64.iso" |
|
|
|
|
|
|
|
URL="${DL_BASE}/distribution/leap/${VERSION}/iso/${ISO}" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
make_vm_dir |
|
|
|
|
|
|
|
web_get ${URL} ${VM_PATH} |
|
|
|
|
|
|
|
make_vm_config ${ISO} |
|
|
|
|
|
|
|
start_vm_info |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_macos() { |
|
|
|
function get_macos() { |
|
|
|
local CWD="" |
|
|
|
local CWD="" |
|
|
|
local MACRECOVERY="" |
|
|
|
local MACRECOVERY="" |
|
|
@ -681,6 +721,8 @@ else |
|
|
|
releases_freebsd |
|
|
|
releases_freebsd |
|
|
|
elif [ "${OS}" == "fedora" ]; then |
|
|
|
elif [ "${OS}" == "fedora" ]; then |
|
|
|
releases_fedora |
|
|
|
releases_fedora |
|
|
|
|
|
|
|
elif [ "${OS}" == "opensuse" ]; then |
|
|
|
|
|
|
|
releases_opensuse |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
releases_macos |
|
|
|
releases_macos |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
@ -699,6 +741,8 @@ elif [[ "${OS}" == *"freebsd" ]]; then |
|
|
|
get_freebsd |
|
|
|
get_freebsd |
|
|
|
elif [[ "${OS}" == *"fedora"* ]]; then |
|
|
|
elif [[ "${OS}" == *"fedora"* ]]; then |
|
|
|
get_fedora |
|
|
|
get_fedora |
|
|
|
|
|
|
|
elif [[ "${OS}" == *"opensuse"* ]]; then |
|
|
|
|
|
|
|
get_opensuse |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
get_ubuntu |
|
|
|
get_ubuntu |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
|