Add support for RockyLinux
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
850d8135f6
commit
c60cadc638
1 changed files with 7 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ if [ -z "${DIST_VERSION}" ]; then
|
|||
DIST_VERSION=8
|
||||
fi
|
||||
if [ -z "${DISTRIB}" ]; then
|
||||
DISTRIB="AlmaLinux"
|
||||
DISTRIB="RockyLinux"
|
||||
fi
|
||||
|
||||
|
||||
|
|
@ -45,9 +45,11 @@ if [ "${DIST_VERSION}" == "8" ]; then
|
|||
elif [ "$DISTRIB" == "RedHat" ]; then
|
||||
MIRROIR=https://boot.reslinger.net/repo/8/rhel
|
||||
# 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
|
||||
MIRROIR=https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os
|
||||
MIRROIR=https://repo.almalinux.org/almalinux/8/BaseOS/$ARCH/os
|
||||
fi
|
||||
elif [ "${DIST_VERSION}" == "7" ]; then
|
||||
#MIRROIR=http://centos.mirrors.ovh.net/ftp.centos.org/7/os/$ARCH
|
||||
|
|
@ -133,6 +135,8 @@ EOF
|
|||
CONFDIR=/boot/efi/EFI/almalinux
|
||||
elif [ -d /sys/firmware/efi -a -e /boot/efi/EFI/centos/grub.cfg ]; then
|
||||
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
|
||||
CONFDIR=/boot/grub2
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue