Refactor get_arcolinux() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:20:09 +00:00
parent b67c272d19
commit c31fa21cb9
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -730,15 +730,10 @@ function get_archlinux() {
function get_arcolinux() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL=""
URL="https://ant.seedhost.eu/arcolinux/iso/${RELEASE}"
ISO="arcolinux${EDITION:0:1}-${RELEASE}-x86_64.iso"
HASH=$(wget -q -O- "${URL}/${ISO}.sha1" | cut -d' ' -f 1)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
local ISO="arcolinux${EDITION:0:1}-${RELEASE}-x86_64.iso"
local URL="https://ant.seedhost.eu/arcolinux/iso/${RELEASE}"
HASH=$(wget -q -O- "${URL}/${ISO}.sha1" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function get_cachyos() {