Refactor Rocky Linux support
Uses the minimal image only.
This commit is contained in:
parent
e0308b4957
commit
2dbbe869d0
19
quickget
19
quickget
@ -1136,9 +1136,6 @@ function get_rocky() {
|
|||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
validate_release "releases_rockylinux"
|
validate_release "releases_rockylinux"
|
||||||
if [ -n "${1}" ]; then
|
|
||||||
ISOTYPE="${1}"
|
|
||||||
fi
|
|
||||||
URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64"
|
URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64"
|
||||||
ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso"
|
ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso"
|
||||||
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4)
|
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4)
|
||||||
@ -1979,21 +1976,7 @@ if [ -n "${2}" ]; then
|
|||||||
elif [ "${OS}" == "regolith" ]; then
|
elif [ "${OS}" == "regolith" ]; then
|
||||||
get_regolith
|
get_regolith
|
||||||
elif [ "${OS}" == "rockylinux" ]; then
|
elif [ "${OS}" == "rockylinux" ]; then
|
||||||
if [ -n "${3}" ]; then
|
get_rocky
|
||||||
ISOTYPE="${3}"
|
|
||||||
ISOTYPES=(minimal dvd1 boot)
|
|
||||||
if [[ ! ${ISOTYPES[*]} =~ ${ISOTYPE} ]]; then
|
|
||||||
echo "iso ${ISOTYPE} is not supported:"
|
|
||||||
for ISOTYPE in "${ISOTYPES[@]}"; do
|
|
||||||
echo "${ISOTYPE}"
|
|
||||||
done
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ISOTYPE="dvd1"
|
|
||||||
fi
|
|
||||||
VM_PATH="${OS}-${RELEASE}-${ISOTYPE}"
|
|
||||||
get_rocky "${ISOTYPE}"
|
|
||||||
elif [ "${OS}" == "solus" ]; then
|
elif [ "${OS}" == "solus" ]; then
|
||||||
get_solus
|
get_solus
|
||||||
elif [[ "${OS}" == "tails"* ]]; then
|
elif [[ "${OS}" == "tails"* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user