mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
fix defect #4653 [FVT]:NetworkManager restarted on rh7 CN and which causes installnic losing ip
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user