2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #2185 from bybai/persistent

fix issue1873 Failed to find the directory: /.statelite/persistent af…
This commit is contained in:
yangsong 2016-11-22 01:21:51 -06:00 committed by GitHub
commit db6f205ba7
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh
#script to update nodelist.nodestatus during provision
XCAT="$(getarg XCAT=)"
STATEMNT="$(getarg STATEMNT=)"
MASTER=`echo $XCAT |awk -F: '{print $1}'`
getarg nonodestatus

View File

@ -3,6 +3,8 @@ NEWROOT=/sysroot
SERVER=${SERVER%%/*}
SERVER=${SERVER%:}
RWDIR=.statelite
XCAT="$(getarg XCAT=)"
STATEMNT="$(getarg STATEMNT=)"
if [ ! -z $STATEMNT ]; then #btw, uri style might have left future options other than nfs open, will u se // to detect uri in the future I guess
SNAPSHOTSERVER=${STATEMNT%:*}
SNAPSHOTROOT=${STATEMNT#*/}