Add bootstrap support for RHEL/CENTOS7

Change-Id: I5a3f6a20e0fde8bd89804ee865113d6b923a6b69
This commit is contained in:
root 2015-02-25 16:13:32 -07:00 committed by Kris Lindgren
parent ecfa346ca9
commit d2a181b75a
3 changed files with 7 additions and 4 deletions

3
smithy
View File

@ -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"."`

View File

@ -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"

View File

@ -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"