From 9c13a7712f2466ca69efabbba14f3196021c29f3 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Fri, 7 May 2021 13:19:39 -0400 Subject: [PATCH] Add Oracle Linux to go-xcat --- xCAT-server/share/xcat/tools/go-xcat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index b4e41e529..69a7d4ed1 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.47 +# Version 1.0.48 # # Copyright (C) 2016 - 2019 International Business Machines # Eclipse Public License, Version 1.0 (EPL-1.0) @@ -34,6 +34,8 @@ # go-xcat --xcat-version=stable install # 2021-02-18 Mark Gurevich # - On Ubuntu remove packages one at a time +# 2021-05-07 Mark Gurevich +# - Add support for Oracle Linux # @@ -1397,6 +1399,7 @@ function add_xcat_dep_repo_yum_or_zypper() local distro="${GO_XCAT_LINUX_DISTRO}${GO_XCAT_LINUX_VERSION%%.*}" case "${distro}" in "centos"*) distro="rh${distro#centos}" ;; + "ol"*) distro="rh${distro#ol}" ;; "fedora10"|"fedora11") distro="fedora9" ;; "fedora1"[678]) distro="rh6" ;; "fedora19"|"fedora2"?) distro="rh7" ;; @@ -2096,7 +2099,7 @@ Version: ${GO_XCAT_LINUX_VERSION} EOF case "${GO_XCAT_LINUX_DISTRO}" in -"centos"|"fedora"|"rhel"|"sles"|"ubuntu") +"centos"|"fedora"|"rhel"|"sles"|"ubuntu"|"ol") ;; *) warn_if_bad 1 "${GO_XCAT_LINUX_DISTRO}: unsupported Linux distro"