mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
ADD NODE name to the /opt/xcat/xcatinfo for statelite image
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user