Refactor Rocky Linux support

Uses the minimal image only.
This commit is contained in:
Martin Wimpress 2022-02-21 04:01:35 +00:00
parent e0308b4957
commit 2dbbe869d0
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 18 deletions

View File

@ -1136,9 +1136,6 @@ function get_rocky() {
local URL=""
validate_release "releases_rockylinux"
if [ -n "${1}" ]; then
ISOTYPE="${1}"
fi
URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64"
ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso"
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
get_regolith
elif [ "${OS}" == "rockylinux" ]; then
if [ -n "${3}" ]; then
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}"
get_rocky
elif [ "${OS}" == "solus" ]; then
get_solus
elif [[ "${OS}" == "tails"* ]]; then