|
|
@ -1124,17 +1124,17 @@ function get_zorin() { |
|
|
|
function get_rocky() { |
|
|
|
function get_rocky() { |
|
|
|
local HASH="" |
|
|
|
local HASH="" |
|
|
|
local ISO="" |
|
|
|
local ISO="" |
|
|
|
|
|
|
|
local ISOTYPE="minimal" |
|
|
|
local URL="" |
|
|
|
local URL="" |
|
|
|
|
|
|
|
|
|
|
|
local arch="x86_64" |
|
|
|
|
|
|
|
local baseurl="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/${arch}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validate_release "releases_rockylinux" |
|
|
|
validate_release "releases_rockylinux" |
|
|
|
ISO="Rocky-${RELEASE}-${arch}-${ISOTYPE}.iso" |
|
|
|
if [ -n "${1}" ]; then |
|
|
|
URL="${baseurl}/${ISO}" |
|
|
|
ISOTYPE="${1}" |
|
|
|
HASH=$(wget -q -O- "${baseurl}/CHECKSUM" | grep "SHA256 (${ISO})" | grep -E -i -w -o '[0-9a-z]{64}') |
|
|
|
fi |
|
|
|
|
|
|
|
URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64" |
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso" |
|
|
|
|
|
|
|
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
|
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
make_vm_config "${ISO}" |
|
|
|
make_vm_config "${ISO}" |
|
|
|
} |
|
|
|
} |
|
|
|