From 02c9efee9789a0f9beb3881263d5182d19e3748d Mon Sep 17 00:00:00 2001 From: huweihua Date: Thu, 19 Jun 2014 03:50:46 -0400 Subject: [PATCH] add feature: update delta change from golden client to target node --- xCAT/postscripts/runxcatpost | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/runxcatpost b/xCAT/postscripts/runxcatpost index 508c13f14..44b0bdfaf 100644 --- a/xCAT/postscripts/runxcatpost +++ b/xCAT/postscripts/runxcatpost @@ -1,4 +1,5 @@ #!/bin/bash +#Used only by sysclone if [ ! -f "/opt/xcat/xcatdsklspost" ];then echo "sysclone require /opt/xcat/xcatdsklspost, but it can not be found. return error!" @@ -27,6 +28,11 @@ fi XCATSERVER="$XCATSERVER:3001" export XCATSERVER +if [ ! -d "/etc/xcat/" ];then + mkdir -p /etc/xcat +fi +echo "sysclone" > /etc/xcat/xcatinstallinfo + cd /xcatpost/ #save the postboot scripts to /xcatpost/mypostscript.post TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /xcatpost/mypostscript` @@ -68,4 +74,6 @@ echo "$TMP" > /tmp/xcatenv . /tmp/xcatenv /xcatpost/addsiteyum -/xcatpost/updateflag.awk $MASTER 3002 +if [ -z "$NODESTATUS" ] || [ "$NODESTATUS" != "0" -a "$NODESTATUS" != "N" -a "$NODESTATUS" != "n" ]; then + /xcatpost/updateflag.awk $MASTER 3002 +fi