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() {
|
function releases_alma() {
|
||||||
# consider flavours for boot and dvd as well as
|
|
||||||
echo 8.4 \
|
echo 8.4 \
|
||||||
8.5
|
8.5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function editions_alma() {
|
||||||
|
echo minimal \
|
||||||
|
dvd
|
||||||
|
}
|
||||||
|
|
||||||
function releases_alpine() {
|
function releases_alpine() {
|
||||||
echo latest \
|
echo latest \
|
||||||
3.12 \
|
3.12 \
|
||||||
|
@ -748,14 +752,17 @@ function get_android() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_alma() {
|
function get_alma() {
|
||||||
|
local EDITION=""
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local ISOTYPE="minimal"
|
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
validate_release "releases_alma"
|
if [ -n "${1}" ]; then
|
||||||
|
EDITION="${1}"
|
||||||
|
fi
|
||||||
|
|
||||||
URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/"
|
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)"
|
HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep \("${ISO}" | cut -d'\' -f4)"
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
check_hash "${ISO}" "${HASH}"
|
check_hash "${ISO}" "${HASH}"
|
||||||
|
|
Loading…
Reference in New Issue