[node-patches] Change in ovirt-node[ovirt-3.5]: init: Move udev rules reloading prior to network start

fabiand at redhat.com fabiand at redhat.com
Mon Aug 10 08:48:12 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: init: Move udev rules reloading prior to network start
......................................................................

init: Move udev rules reloading prior to network start

Change-Id: Iccd2556fce8cf6b22335684f6769e911da1a1c20
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1251040
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 10 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/15/44615/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index c0bbd2c..1e1062f 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -876,6 +876,16 @@
         # config files (mounted in by the preceeding mount_config call)
         mount -a
         swapon -a
+
+        [[ -f "/etc/udev/rules.d/71-persistent-node-net.rules" ]] && {
+            [[ $(rpm -E "%{?rhel"}) = 6 ]] || [[ $(rpm -E "%{?centos}") = 6 ]] && {
+                # Rename the interfaces after bind-mounting the udev rules, rhbz#831658
+                rm -f /etc/udev/rules.d/70-persistent-net.rules
+                udevadm control --reload-rules
+                udevadm trigger --action=add --subsystem-match=net
+            }
+        }
+
         service network restart
         service auditd restart
     fi
@@ -917,15 +927,6 @@
             hostname $HOSTNAME
         fi
     fi
-
-    [[ -f "/etc/udev/rules.d/71-persistent-node-net.rules" ]] && {
-        [[ $(rpm -E "%{?rhel"}) = 6 ]] || [[ $(rpm -E "%{?centos}") = 6 ]] && {
-            # Rename the interfaces after bind-mounting the udev rules, rhbz#831658
-            rm -f /etc/udev/rules.d/70-persistent-net.rules
-            udevadm control --reload-rules
-            udevadm trigger --action=add --subsystem-match=net
-        }
-    }
 
     if [ -n "$adminpw" ]; then
         log "Setting temporary admin password"


-- 
To view, visit https://gerrit.ovirt.org/44615
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iccd2556fce8cf6b22335684f6769e911da1a1c20
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list