[node-patches] Change in ovirt-node[master]: fix plugin kargs sorting to defaults file

jboggs at redhat.com jboggs at redhat.com
Tue Jun 25 03:08:37 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: fix plugin kargs sorting to defaults file
......................................................................

fix plugin kargs sorting to defaults file

previously kargs not defined by ovirt-early would be skipped over and
not saved as $OVIRT_VAR_NAME

Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I381f96f46cffd2babff78089b59862eb8a71d2ed
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/53/16053/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 0c32f21..13fb9b9 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -730,7 +730,9 @@
             if ! grep -qw $varname /etc/ovirt-commandline.d/* 2>/dev/null; then
                 bootparams="$bootparams $i"
             else
-
+                i=${i#$varname=}
+                var=$(eval echo $varname)
+                eval $var=$i
                 plugin_vars="$plugin_vars $varname"
             fi
             ;;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I381f96f46cffd2babff78089b59862eb8a71d2ed
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list