From c60cadc6382b9d1ca986fd7e96ffe600770e7564 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Tue, 8 Feb 2022 00:34:22 +0100 Subject: [PATCH] Add support for RockyLinux --- files/usr/local/sbin/install_pxe.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/files/usr/local/sbin/install_pxe.sh b/files/usr/local/sbin/install_pxe.sh index 3a16ffe..e9e13f0 100755 --- a/files/usr/local/sbin/install_pxe.sh +++ b/files/usr/local/sbin/install_pxe.sh @@ -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