From 0e606e2b6ac315098a0a4fa01bb34987cbc94413 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Fri, 24 Jun 2016 14:35:20 +0800 Subject: [PATCH] [go-xcat] Add better support for earlier Fedora Linux release. And add CentOS Linux support. --- xCAT-server/share/xcat/tools/go-xcat | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index f5dce83e1..458877d0c 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -940,9 +940,12 @@ function add_xcat_dep_repo_yum_or_zypper() local install_path="${GO_XCAT_DEFAULT_INSTALL_PATH}" local distro="${GO_XCAT_LINUX_DISTRO}${GO_XCAT_LINUX_VERSION%%.*}" case "${distro}" in - "fedora2"?) distro="rh7" ;; - "rhel"*) distro="rh${distro#rhel}" ;; - "sles"*) ;; + "centos"*) distro="rh${distro#centos}" ;; + "fedora10"|"fedora11") distro="fedora9" ;; + "fedora1"[678]) distro="rh6" ;; + "fedora19"|"fedora2"?) distro="rh7" ;; + "rhel"*) distro="rh${distro#rhel}" ;; + "sles"*) ;; *) warn_if_bad 1 "${distro}: unsupported Linux distro" || return 1 esac [[ -z "${url}" ]] && @@ -1368,7 +1371,7 @@ Version: ${GO_XCAT_LINUX_VERSION} EOF case "${GO_XCAT_LINUX_DISTRO}" in -"fedora"|"rhel"|"sles"|"ubuntu") +"centos"|"fedora"|"rhel"|"sles"|"ubuntu") ;; *) warn_if_bad 1 "${GO_XCAT_LINUX_DISTRO}: unsupported Linux distro"