diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels7 b/xCAT-server/share/xcat/install/scripts/post.rhels7 index 41127db68..571e63277 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhels7 +++ b/xCAT-server/share/xcat/install/scripts/post.rhels7 @@ -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