From c2373953d35eb957b23cf193e729a055664f4c37 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Mon, 2 Apr 2018 20:38:55 -0400 Subject: [PATCH] ADD NODE name to the /opt/xcat/xcatinfo for statelite image --- xCAT/postscripts/xcatdsklspost | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 4113667db..083320d6b 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -692,6 +692,12 @@ if [ $? -eq 0 ]; then else echo "USEFLOWCONTROL=$new_fc" >> /opt/xcat/xcatinfo fi +grep 'NODE' /opt/xcat/xcatinfo > /dev/null 2>&1 +if [ $? -eq 0 ]; then + sed -i "s/NODE=.*/NODE=$NODE/" /opt/xcat/xcatinfo +else + echo "NODE=$NODE" >> /opt/xcat/xcatinfo +fi # Store the SERVICEGROUP into the xcatinfo file for node deployment, and also for updatenode -s if [ $NODE_DEPLOYMENT -eq 1 ] || [ "$MODE" = "1" ]; then