[node-patches] Change in ovirt-node[master]: init: Reload udev net rules and re-trigger

fabiand at fedoraproject.org fabiand at fedoraproject.org
Thu Oct 4 10:45:57 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: init: Reload udev net rules and re-trigger
......................................................................

init: Reload udev net rules and re-trigger

Because the persistent net rules are bind mounted from /config we need
to tell udev to reload this "new" rules and re-trigger a renaming of the
devices.

rhbz#773495

Change-Id: Ib32efbcf6ad6f544612aef658a2421c553da5dcc
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
---
M scripts/ovirt-init-functions.sh
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/51/8351/1

diff --git a/scripts/ovirt-init-functions.sh b/scripts/ovirt-init-functions.sh
index 434b50a..3bce1c4 100644
--- a/scripts/ovirt-init-functions.sh
+++ b/scripts/ovirt-init-functions.sh
@@ -827,7 +827,8 @@
     fi
 
     # Rename the interfaces after bind-mounting the udev rules, rhbz#831658
-    udevadm trigger
+    udevadm control --reload-rules
+    udevadm trigger --action=add --subsystem-match=net
 
     if [ -n "$cim_passwd" ]; then
         log "Setting temporary admin password: $cim_passwd"


--
To view, visit http://gerrit.ovirt.org/8351
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib32efbcf6ad6f544612aef658a2421c553da5dcc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list