get hostname from niminfo file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2010-09-13 20:03:15 +00:00
parent 90eda95f4b
commit 6e77c62653

View File

@ -10,7 +10,6 @@
#
###############################################################################
ME=`hostname -s`
SL="/.statelite"
ROOTDIR="/"
MOUNTDIR="$SL/mnt" # where I mount all the trees.
@ -25,6 +24,10 @@ LITEFILE="/litefile.table"
LITETREE="/litetree.table"
LOG="${ROOTDIR}/${SL}/statelite.log"
# get this node name from the /etc/niminfo file
INFO=`cat /etc/niminfo | grep 'NIM_HOSTNAME'`
ME=`echo $INFO | awk -F= '{print $2}'`
# check the statelite.table file to see if we have
# a persistent dir to mount.
ProcessStatelite () {