From d2a181b75a5e3e5f845134f8111b8aa83b5bf5db Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Feb 2015 16:13:32 -0700 Subject: [PATCH] Add bootstrap support for RHEL/CENTOS7 Change-Id: I5a3f6a20e0fde8bd89804ee865113d6b923a6b69 --- smithy | 3 +++ tools/bootstrap/CentOS | 4 ++-- tools/bootstrap/RedHatEnterpriseLinuxServer | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/smithy b/smithy index 49d23bb8..37093d56 100755 --- a/smithy +++ b/smithy @@ -268,6 +268,9 @@ get_os_info() PKG="rpm" OSNAME=`cat /etc/redhat-release` OSDIST=`cat /etc/redhat-release | sed -e 's/release.*$//g;s/\s//g'` + if [ "$OSDIST" == "CentOSLinux" ] ; then + OSDIST="CentOS" + fi PSUEDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//` RELEASE=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//` MAJOR_RELEASE=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*// | cut -f1 -d"."` diff --git a/tools/bootstrap/CentOS b/tools/bootstrap/CentOS index b1379abd..e143c6d9 100644 --- a/tools/bootstrap/CentOS +++ b/tools/bootstrap/CentOS @@ -1,6 +1,6 @@ # -*- sh -*- -## Bootstrap for CentOS Linux 6.x +## Bootstrap for CentOS Linux 7.x SHORTNAME=CENTOS -MIN_RELEASE=6.0 +MIN_RELEASE=7.0 source "$BSCONF_DIR/CommonRedHat" diff --git a/tools/bootstrap/RedHatEnterpriseLinuxServer b/tools/bootstrap/RedHatEnterpriseLinuxServer index 4e200f94..c6d27f18 100644 --- a/tools/bootstrap/RedHatEnterpriseLinuxServer +++ b/tools/bootstrap/RedHatEnterpriseLinuxServer @@ -1,6 +1,6 @@ # -*- sh -*- -## Bootstrap for Redhat Enterprise Linux 6.x +## Bootstrap for Redhat Enterprise Linux 7.x SHORTNAME=RHEL -MIN_RELEASE=6.0 +MIN_RELEASE=7.0 source "$BSCONF_DIR/CommonRedHat"