From 154327aef30340bd0c01a60a0aaaada4d59658c3 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 3 Jul 2015 04:11:01 -0400 Subject: [PATCH] fix defect #4653 [FVT]:NetworkManager restarted on rh7 CN and which causes installnic losing ip --- .../share/xcat/install/scripts/post.rhels7 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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