2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

ADD NODE name to the /opt/xcat/xcatinfo for statelite image

This commit is contained in:
Casandra Qiu
2018-04-02 20:38:55 -04:00
parent f2958a9ef5
commit c2373953d3

View File

@@ -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