Refactor Alma Linux support to add editions
This commit is contained in:
parent
04e65d953a
commit
a78ab882d3
15
quickget
15
quickget
@ -199,11 +199,15 @@ function os_support() {
|
||||
}
|
||||
|
||||
function releases_alma() {
|
||||
# consider flavours for boot and dvd as well as
|
||||
echo 8.4 \
|
||||
8.5
|
||||
}
|
||||
|
||||
function editions_alma() {
|
||||
echo minimal \
|
||||
dvd
|
||||
}
|
||||
|
||||
function releases_alpine() {
|
||||
echo latest \
|
||||
3.12 \
|
||||
@ -748,14 +752,17 @@ function get_android() {
|
||||
}
|
||||
|
||||
function get_alma() {
|
||||
local EDITION=""
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
local ISOTYPE="minimal"
|
||||
local URL=""
|
||||
|
||||
validate_release "releases_alma"
|
||||
if [ -n "${1}" ]; then
|
||||
EDITION="${1}"
|
||||
fi
|
||||
|
||||
URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/"
|
||||
ISO="AlmaLinux-${RELEASE}-x86_64-${ISOTYPE}.iso"
|
||||
ISO="AlmaLinux-${RELEASE}-x86_64-${EDITION}.iso"
|
||||
HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep \("${ISO}" | cut -d'\' -f4)"
|
||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||
check_hash "${ISO}" "${HASH}"
|
||||
|
Loading…
Reference in New Issue
Block a user