Add support for RockyLinux
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2022-02-08 00:34:22 +01:00
parent 850d8135f6
commit c60cadc638
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -18,7 +18,7 @@ if [ -z "${DIST_VERSION}" ]; then
DIST_VERSION=8 DIST_VERSION=8
fi fi
if [ -z "${DISTRIB}" ]; then if [ -z "${DISTRIB}" ]; then
DISTRIB="AlmaLinux" DISTRIB="RockyLinux"
fi fi
@ -45,9 +45,11 @@ if [ "${DIST_VERSION}" == "8" ]; then
elif [ "$DISTRIB" == "RedHat" ]; then elif [ "$DISTRIB" == "RedHat" ]; then
MIRROIR=https://boot.reslinger.net/repo/8/rhel MIRROIR=https://boot.reslinger.net/repo/8/rhel
# elif [ "$DISTRIB" == "OracleLinux" ]; then # elif [ "$DISTRIB" == "OracleLinux" ]; then
# MIRROIR=https://xxxx/8/BaseOS/x86_64/os # MIRROIR=https://xxxx/8/BaseOS/$ARCH/os
elif [ "$DISTRIB" == "RockyLinux" ]; then
MIRROIR=https://download.rockylinux.org/pub/rocky/8/BaseOS/$ARCH/os/
elif [ "$DISTRIB" == "AlmaLinux" ]; then elif [ "$DISTRIB" == "AlmaLinux" ]; then
MIRROIR=https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os MIRROIR=https://repo.almalinux.org/almalinux/8/BaseOS/$ARCH/os
fi fi
elif [ "${DIST_VERSION}" == "7" ]; then elif [ "${DIST_VERSION}" == "7" ]; then
#MIRROIR=http://centos.mirrors.ovh.net/ftp.centos.org/7/os/$ARCH #MIRROIR=http://centos.mirrors.ovh.net/ftp.centos.org/7/os/$ARCH
@ -133,6 +135,8 @@ EOF
CONFDIR=/boot/efi/EFI/almalinux CONFDIR=/boot/efi/EFI/almalinux
elif [ -d /sys/firmware/efi -a -e /boot/efi/EFI/centos/grub.cfg ]; then elif [ -d /sys/firmware/efi -a -e /boot/efi/EFI/centos/grub.cfg ]; then
CONFDIR=/boot/efi/EFI/centos CONFDIR=/boot/efi/EFI/centos
elif [ -d /sys/firmware/efi -a -e /boot/efi/EFI/rocky/grub.cfg ]; then
CONFDIR=/boot/efi/EFI/rocky
else else
CONFDIR=/boot/grub2 CONFDIR=/boot/grub2
fi fi