2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

fix defect #4653 [FVT]:NetworkManager restarted on rh7 CN and which causes installnic losing ip

This commit is contained in:
immarvin
2015-07-03 04:11:01 -04:00
parent 3cf209a3a4
commit 154327aef3

View File

@ -11,3 +11,18 @@ do
#nic name change during the install and first_reboot
sed -i '/HWADDR/d' $i
done
if[ -f "/usr/lib/systemd/system/NetworkManager.service" ];then
systemctl stop NetworkManager
systemctl disable NetworkManager
fi
if[ -f "/usr/lib/systemd/system/NetworkManager-dispatcher.service" ];then
systemctl stop NetworkManager-dispatcher
systemctl disable NetworkManager-dispatcher
fi
if[ -f "/usr/lib/systemd/system/NetworkManager-wait-online.service" ];then
systemctl stop NetworkManager-wait-online
systemctl disable NetworkManager-wait-online
fi