diff -aruN eth-fast-fabric-11.1.0.1/CommonInstall/util_init.pl eth-fast-fabric-11.1.0.1.alma/CommonInstall/util_init.pl --- eth-fast-fabric-11.1.0.1/CommonInstall/util_init.pl 2021-11-02 20:38:31.000000000 +0300 +++ eth-fast-fabric-11.1.0.1.alma/CommonInstall/util_init.pl 2022-02-17 10:21:19.000000000 +0300 @@ -305,6 +305,8 @@ $CUR_DISTRO_VENDOR = "redhat"; } elsif ( -s "/etc/centos-release" ) { $CUR_DISTRO_VENDOR = "redhat"; + } elsif ( -s "/etc/almalinux-release" ) { + $CUR_DISTRO_VENDOR = "redhat"; } elsif ( -s "/etc/rocky-release" ) { $CUR_DISTRO_VENDOR = "redhat"; } elsif ( -s "/etc/UnitedLinux-release" ) { @@ -323,6 +325,7 @@ } elsif ( -e $os_release_file) { my %distroVendor = ( "rhel" => "redhat", + "almalinux" => "redhat", "centos" => "redhat", "rocky" => "redhat", "sles" => "SuSE", @@ -330,6 +333,7 @@ ); my %network_conf_dir = ( "rhel" => $NETWORK_CONF_DIR, + "almalinux" => $NETWORK_CONF_DIR, "centos" => $NETWORK_CONF_DIR, "rocky" => $NETWORK_CONF_DIR, "sles" => "/etc/sysconfig/network", @@ -361,6 +365,8 @@ $NETWORK_CONF_DIR = "/etc/sysconfig/network"; } elsif ($CUR_DISTRO_VENDOR eq "centos") { $CUR_DISTRO_VENDOR = "redhat"; + } elsif ($CUR_DISTRO_VENDOR eq "almalinux") { + $CUR_DISTRO_VENDOR = "redhat"; } elsif ($CUR_DISTRO_VENDOR eq "rocky") { $CUR_DISTRO_VENDOR = "redhat"; } diff -aruN eth-fast-fabric-11.1.0.1/MakeTools/funcs-ext.sh eth-fast-fabric-11.1.0.1.alma/MakeTools/funcs-ext.sh --- eth-fast-fabric-11.1.0.1/MakeTools/funcs-ext.sh 2021-11-02 20:38:31.000000000 +0300 +++ eth-fast-fabric-11.1.0.1.alma/MakeTools/funcs-ext.sh 2022-02-17 10:23:59.000000000 +0300 @@ -725,6 +725,9 @@ centos) rval=redhat ;; + almalinux) + rval=redhat + ;; rocky) rval=redhat ;; @@ -759,6 +762,9 @@ elif [ $rval = 'centos' ] then rval=redhat + elif [ $rval = 'almalinux' ] + then + rval=redhat elif [ $rval = 'rocky' ] then rval=redhat @@ -836,6 +842,10 @@ then # CentOS rval="ES"`cat /etc/redhat-release | sed -r 's/^.+([[:digit:]])\.([[:digit:]]).+$/\1\2/'` + elif grep -qi almalinux /etc/redhat-release + then + # AlmaLinux + rval="ES"`cat /etc/redhat-release | sed -r 's/^.+([[:digit:]])\.([[:digit:]]).+$/\1\2/'` elif grep -qi rocky /etc/redhat-release then # Rocky Linux diff -aruN eth-fast-fabric-11.1.0.1/OpenIb_Host/update_mpi_spec.sh eth-fast-fabric-11.1.0.1.alma/OpenIb_Host/update_mpi_spec.sh --- eth-fast-fabric-11.1.0.1/OpenIb_Host/update_mpi_spec.sh 2021-11-02 20:38:31.000000000 +0300 +++ eth-fast-fabric-11.1.0.1.alma/OpenIb_Host/update_mpi_spec.sh 2022-02-17 10:24:56.000000000 +0300 @@ -33,7 +33,7 @@ id=$(./get_id_and_versionid.sh | cut -f1 -d' ') versionid=$(./get_id_and_versionid.sh | cut -f2 -d' ') -if [ "$id" = "rhel" -o "$id" = "centos" -o "$id" = "rocky" ] +if [ "$id" = "rhel" -o "$id" = "centos" -o "$id" = "rocky" -o "$id" = "almalinux" ] then GE_8_0=$(echo "$versionid >= 8.0" | bc) sed -i "s/__RPM_REQ/Requires: openblas-devel/" mpi-apps.spec diff -aruN eth-fast-fabric-11.1.0.1/get_id_and_versionid.sh eth-fast-fabric-11.1.0.1.alma/get_id_and_versionid.sh --- eth-fast-fabric-11.1.0.1/get_id_and_versionid.sh 2021-11-02 20:38:31.000000000 +0300 +++ eth-fast-fabric-11.1.0.1.alma/get_id_and_versionid.sh 2022-02-17 10:22:28.000000000 +0300 @@ -29,6 +29,9 @@ elif [ $rval = 'centos' ] then rval=redhat + elif [ $rval = 'almalinux' ] + then + rval=redhat elif [ $rval = 'rocky' ] then rval=redhat @@ -70,6 +73,10 @@ then # CentOS rval=`cat /etc/redhat-release | sed -r 's/^.+([[:digit:]])\.([[:digit:]]).+$/\1.\2/'` + elif grep -qi almalinux /etc/redhat-release + then + # AlmaLinux + rval=`cat /etc/redhat-release | sed -r 's/^.+([[:digit:]])\.([[:digit:]]).+$/\1.\2/'` elif grep -qi rocky /etc/redhat-release then # Rocky Linux diff -aruN eth-fast-fabric-11.1.0.1/update_eth_spec.sh eth-fast-fabric-11.1.0.1.alma/update_eth_spec.sh --- eth-fast-fabric-11.1.0.1/update_eth_spec.sh 2021-11-02 20:38:31.000000000 +0300 +++ eth-fast-fabric-11.1.0.1.alma/update_eth_spec.sh 2022-02-17 10:25:37.000000000 +0300 @@ -48,7 +48,7 @@ source ./OpenIb_Host/ff_filegroups.sh -if [ "$id" = "rhel" -o "$id" = "centos" -o "$id" = "rocky" ] +if [ "$id" = "rhel" -o "$id" = "centos" -o "$id" = "rocky" -o "$id" = "almalinux" ] then # __RPM_REQ_BASIC - sed -i "s/__RPM_REQ_BASIC1/expect%{?_isa}, tcl%{?_isa}, libibverbs-utils%{?_isa}, librdmacm-utils%{?_isa}, net-snmp-utils%{?_isa}/g" eth-tools.spec