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

Fix issue 942:[PCM] CN IP loss after 12 hours due to the dhcp.lease timeout value 43200

This commit is contained in:
ertaozh
2016-04-25 03:08:59 -04:00
committed by WangXiaoPeng
parent 40542f6c3c
commit 52061dd662
2 changed files with 8 additions and 7 deletions

View File

@@ -20,3 +20,11 @@ do
#nic name change during the install and first_reboot
sed -i '/HWADDR/d' $i
done
# NetworkManager will conflict with the configuring xcat do later in postboot script, so disable it in postscript
# There are 2 other service related to NetworkManager: NetworkManager-dispatcher and NetworkManager-wait-online
# Both of them are triggered by NetworkManager, so just disable NetworkManager here
if [ -f "/usr/lib/systemd/system/NetworkManager.service" ]; then
systemctl disable NetworkManager
fi

View File

@@ -99,13 +99,6 @@ fi
" >> /xcatpost/mypostscript.post
fi
stopservice NetworkManager
stopservice NetworkManager-dispatcher
stopservice NetworkManager-wait-online
disableservice NetworkManager
disableservice NetworkManager-dispatcher
disableservice NetworkManager-wait-online
chmod +x /xcatpost/mypostscript.post
if [ -x /xcatpost/mypostscript.post ];then
msgutil_r "$MASTER_IP" "info" "running /xcatpost/mypostscript.post" "/var/log/xcat/xcat.log"