Add bootstrap support for RHEL/CENTOS7
Change-Id: I5a3f6a20e0fde8bd89804ee865113d6b923a6b69
This commit is contained in:
parent
ecfa346ca9
commit
d2a181b75a
3
smithy
3
smithy
@ -268,6 +268,9 @@ get_os_info()
|
|||||||
PKG="rpm"
|
PKG="rpm"
|
||||||
OSNAME=`cat /etc/redhat-release`
|
OSNAME=`cat /etc/redhat-release`
|
||||||
OSDIST=`cat /etc/redhat-release | sed -e 's/release.*$//g;s/\s//g'`
|
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/\)//`
|
PSUEDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//`
|
||||||
RELEASE=`cat /etc/redhat-release | sed s/.*release\ // | 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"."`
|
MAJOR_RELEASE=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*// | cut -f1 -d"."`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- sh -*-
|
# -*- sh -*-
|
||||||
## Bootstrap for CentOS Linux 6.x
|
## Bootstrap for CentOS Linux 7.x
|
||||||
SHORTNAME=CENTOS
|
SHORTNAME=CENTOS
|
||||||
MIN_RELEASE=6.0
|
MIN_RELEASE=7.0
|
||||||
|
|
||||||
source "$BSCONF_DIR/CommonRedHat"
|
source "$BSCONF_DIR/CommonRedHat"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- sh -*-
|
# -*- sh -*-
|
||||||
## Bootstrap for Redhat Enterprise Linux 6.x
|
## Bootstrap for Redhat Enterprise Linux 7.x
|
||||||
SHORTNAME=RHEL
|
SHORTNAME=RHEL
|
||||||
MIN_RELEASE=6.0
|
MIN_RELEASE=7.0
|
||||||
|
|
||||||
source "$BSCONF_DIR/CommonRedHat"
|
source "$BSCONF_DIR/CommonRedHat"
|
||||||
|
Loading…
Reference in New Issue
Block a user