[Ovirt-devel] [PATCH server] networkmanager enabled check

Joey Boggs jboggs at redhat.com
Mon Feb 23 22:09:26 UTC 2009


Network Manager seems to have some quirkiness in accepting the dhclient options, for now we will check to see if it's enabled and force to use the regular network service in it's place for now.
---
 installer/bin/ovirt-installer |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/installer/bin/ovirt-installer b/installer/bin/ovirt-installer
index 3ba9813..86c9b9b 100755
--- a/installer/bin/ovirt-installer
+++ b/installer/bin/ovirt-installer
@@ -103,6 +103,15 @@ if File.exist?("/usr/sbin/selinuxenabled")
     end
 end
 
+if File.exist?("/etc/init.d/NetworkManager")
+    nm = `/sbin/service NetworkManager status`
+    if nm !~ /stopped/
+        @cli.say("NetworkManager is running, disable and use standard network scripts before proceeding")
+        exit
+    else
+    end
+end
+
 # Networking Configuration
 dev_ct = 0
 net_devs = `hal-find-by-capability --capability net`
-- 
1.6.0.6




More information about the ovirt-devel mailing list