From a886e8c480434385c11e6ddbc1d6acdfcf93d9ff Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 19 Jan 2023 13:11:41 -0500 Subject: [PATCH] Enable go-xcat to insall xCAT on Alma Linux --- xCAT-server/share/xcat/install/scripts/post.rhels8 | 2 +- xCAT-server/share/xcat/netboot/rh/genimage | 2 +- xCAT-server/share/xcat/tools/go-xcat | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels8 b/xCAT-server/share/xcat/install/scripts/post.rhels8 index a45862796..6ab305e87 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhels8 +++ b/xCAT-server/share/xcat/install/scripts/post.rhels8 @@ -22,7 +22,7 @@ done # List of internal repos to be disabled -internet_repo_file_list="oracle-linux-ol8.repo uek-ol8.repo Rocky-AppStream.repo Rocky-BaseOS.repo Rocky-Extras.repo CentOS-Base.repo" +internet_repo_file_list="oracle-linux-ol8.repo uek-ol8.repo Rocky-AppStream.repo Rocky-BaseOS.repo Rocky-Extras.repo CentOS-Base.repo almalinux-ha.repo almalinux-nfv.repo almalinux-powertools.repo almalinux.repo almalinux-resilientstorage.repo almalinux-rt.repo" for repo_file in $internet_repo_file_list do diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 8273ae87e..a79194f23 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -786,7 +786,7 @@ if ((-d "$rootimg_dir/usr/share/dracut") or (-d "$rootimg_dir/usr/lib/dracut")) # List of internet repos to be disabled -my @internet_repo_file_list = ("oracle-linux-ol8.repo", "uek-ol8.repo", "Rocky-AppStream.repo", "Rocky-BaseOS.repo", "Rocky-Extras.repo", "CentOS-Base.repo"); +my @internet_repo_file_list = ("oracle-linux-ol8.repo", "uek-ol8.repo", "Rocky-AppStream.repo", "Rocky-BaseOS.repo", "Rocky-Extras.repo", "CentOS-Base.repo", "almalinux-ha.repo", "almalinux-nfv.repo", "almalinux-plus.repo", "almalinux-powertools.repo", "almalinux.repo", "almalinux-resilientstorage.repo", "almalinux-rt.repo"); foreach ( @internet_repo_file_list ) { if (-e "$rootimg_dir/etc/yum.repos.d/$_") { diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index dd446c2e6..099c4aab0 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -2,7 +2,7 @@ # # go-xcat - Install xCAT automatically. # -# Version 1.0.52 +# Version 1.0.53 # # Copyright (C) 2016 - 2021 International Business Machines # Eclipse Public License, Version 1.0 (EPL-1.0) @@ -44,6 +44,8 @@ # - Make sure initscripts installed on RH family of OSes # 2022-12-06 Mark Gurevich # - Check for EPEL and CRB repository on EL9 family of OSes +# 2023-01-19 Mark Gurevich +# - Add support for Alma Linux # @@ -1601,6 +1603,7 @@ function add_xcat_dep_repo_yum_or_zypper() "centos"*) distro="rh${distro#centos}" ;; "ol"*) distro="rh${distro#ol}" ;; "rocky"*) distro="rh${distro#rocky}" ;; + "alma"*) distro="rh${distro#almalinux}" ;; "fedora10"|"fedora11") distro="fedora9" ;; "fedora1"[678]) distro="rh6" ;; "fedora19"|"fedora2"?) distro="rh7" ;; @@ -2353,7 +2356,7 @@ Version: ${GO_XCAT_LINUX_VERSION} EOF case "${GO_XCAT_LINUX_DISTRO}" in -"centos"|"fedora"|"rhel"|"sles"|"ubuntu"|"ol"|"rocky") +"centos"|"fedora"|"rhel"|"sles"|"ubuntu"|"ol"|"rocky"|"almalinux") ;; *) warn_if_bad 1 "${GO_XCAT_LINUX_DISTRO}: unsupported Linux distro"