[node-patches] Change in ovirt-node[ovirt-3.5]: Also recognize bond= at boot

fabiand at redhat.com fabiand at redhat.com
Wed Dec 3 16:18:48 UTC 2014


Hello Ryan Barry,

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

    http://gerrit.ovirt.org/35846

to review the following change.

Change subject: Also recognize bond= at boot
......................................................................

Also recognize bond= at boot

So EL7 don't need to specify bond_options= and bond= at boot,
recognize the new dracut parameters

Change-Id: I98bff275811670eba28fdd4c11ed322789ec8183
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1156343
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
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/46/35846/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index c0be57c..9fcbb3c 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -685,7 +685,8 @@
             network_layout=*)
             network_layout=${i#network_layout=}
             ;;
-            bond_setup=*)
+            bond_setup=* | bond=*)
+            i=${i#bond=}
             i=${i#bond_setup=}
             eval $(printf $i|awk -F: '{print "bond_name="$1; print "bond_slaves="$2; print "bond_options="$3;}')
             ;;


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

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



More information about the node-patches mailing list