[node-patches] Change in ovirt-node[master]: init: Trigger a change instead of an add

tlitovsk at redhat.com tlitovsk at redhat.com
Mon Aug 10 13:04:20 UTC 2015


Hello Fabian Deutsch,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/44621

to review the following change.

Change subject: init: Trigger a change instead of an add
......................................................................

init: Trigger a change instead of an add

The assumption is that a change is less invasive, than an add.

Change-Id: I6a6b4bcd8daaf4938083519c35940e557cce8f44
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, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/21/44621/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 1e1062f..ea25ac3 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -882,7 +882,8 @@
                 # 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
+                udevadm trigger --attr-match=subsystem=net
+                udevadm settle --timeout=10
             }
         }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a6b4bcd8daaf4938083519c35940e557cce8f44
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Anatoly Litovsky <tlitovsk at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list