From eb756f9804ee794ca8a37d8b572092f9987e3281 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Sat, 3 Apr 2010 08:36:41 +0000 Subject: [PATCH] the litefile and litetree commands need the argument, xCATcmd() is updated by adding "" git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../share/xcat/netboot/add-on/statelite/rc.statelite | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite index 884da7e2a..636130a53 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite @@ -51,16 +51,17 @@ GetSyncInfo () { break fi done + + hn=`hostname` if [ -z $XCATSERVER ]; then - hn=`hostname` echo "Cannot find the xCAT server for node $hn" exit 1 fi # request the list of files from xCAT: - xCATCmd $XCATSERVER litefile \ + xCATCmd $XCATSERVER litefile $hn\ | sed -e 's/<[^>]*>//g' \ | egrep -v '^ *$' \ | sed -e 's/^ *//' \ @@ -70,7 +71,7 @@ GetSyncInfo () { # files will now be inside /.snapshot/tmpfs/synclist in the form: # options path - xCATCmd $XCATSERVER litetree \ + xCATCmd $XCATSERVER litetree $hn\ | sed -e 's/<[^>]*>//g' \ | egrep -v '^ *$' \ | sed -e 's/^ *//' \ @@ -81,7 +82,8 @@ GetSyncInfo () { xCATCmd () { # $1 is the xCAT server # $2 is the command - echo "\n${2}\n" | LD_LIBRARY_PATH=/sysroot/lib64:/sysroot/usr/lib64 /sysroot/usr/bin/openssl s_client -quiet -connect ${1} -rand /bin/nice 2>/dev/null +# $3 is the noderange + echo "\n${2}\n$hn\n" | LD_LIBRARY_PATH=/sysroot/lib64:/sysroot/usr/lib64 /sysroot/usr/bin/openssl s_client -quiet -connect ${1} -rand /bin/nice 2>/dev/null }