mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	add feature: update delta change from golden client to target node
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user