Refactor get_mxlinux() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:48:25 +00:00
parent e57307e54a
commit 512aa14fe2
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -979,26 +979,15 @@ function get_mxlinux() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL=""
local URL="https://sourceforge.net/projects/mx-linux/files/Final/${EDITION}"
case ${EDITION} in
xfce)
URL="https://sourceforge.net/projects/mx-linux/files/Final/Xfce"
ISO="MX-${RELEASE}_x64.iso"
;;
kde)
URL="https://sourceforge.net/projects/mx-linux/files/Final/KDE"
ISO="MX-${RELEASE}_KDE_x64.iso"
;;
fluxbox)
URL="https://sourceforge.net/projects/mx-linux/files/Final/Fluxbox"
ISO="MX-${RELEASE}_fluxbox_x64.iso"
;;
Xfce) ISO="MX-${RELEASE}_x64.iso";;
KDE) ISO="MX-${RELEASE}_KDE_x64.iso";;
Fluxbox) ISO="MX-${RELEASE}_fluxbox_x64.iso";;
esac
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
echo "${URL}/${ISO} ${HASH}"
}
function get_netboot() {