Refactor get_dragonflybsd() to support create_vm()

This commit is contained in:
Martin Wimpress 2022-02-23 11:41:53 +00:00
parent 4f201949cd
commit 5ac9a848eb
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -790,15 +790,11 @@ function get_devuan() {
function get_dragonflybsd() {
local HASH=""
local ISO=""
local URL=""
local ISO="dfly-x86_64-${RELEASE}_REL.iso"
local URL="http://mirror-master.dragonflybsd.org/iso-images"
URL="http://mirror-master.dragonflybsd.org/iso-images"
ISO="dfly-x86_64-${RELEASE}_REL.iso"
HASH=$(wget -q -O- "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
echo "${URL}/${ISO} ${HASH}"
}
function get_elementary() {