[node-patches] Change in ovirt-node[master]: [DRAFT] init: Add support for bond cmdline args

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Jun 14 10:35:51 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: [DRAFT] init: Add support for bond cmdline args
......................................................................

[DRAFT] init: Add support for bond cmdline args

This patch adds support for the dracut bond syntax:
bond=<bondname>[:<bondslaves>:[:<options>]]
This informations are sued to create (and persist) a bond device during
an auto-installation.

Change-Id: Ibc3afd0b901070759d4860f0611da7e2050ff66f
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/16/15716/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 505a628..6c635e7 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -335,6 +335,7 @@
     #   ntp=server[,server]
     #   vlan=id
     #   network_layout=bridged|direct
+    #   bond=<bondname>[:<bondslaves>:[:<options>]]
     # static network configuration
     ip_address=
     ip_gateway=
@@ -346,6 +347,9 @@
     dns=
     ntp=
     network_layout=
+    bond_name=
+    bond_slaves=
+    bond_options=
 
     #   ssh_pwauth=[0|1]
     ssh_pwauth=
@@ -628,6 +632,8 @@
             network_layout=*)
             network_layout=${i#network_layout=}
             ;;
+            bond=*)
+            eval $(printf $i|awk -F: '{print "bond_name="$1; print "bond_slaves="$2; print "bond_options="$3;}')
             hostname=*)
             hostname=${i#hostname=}
             ;;
@@ -755,7 +761,7 @@
 
 
     # save boot parameters as defaults for ovirt-config-*
-    params="bootif init init_app vol_boot_size vol_efi_size vol_swap_size vol_root_size vol_config_size vol_logging_size vol_data_size vol_swap2_size vol_data2_size crypt_swap crypt_swap2 upgrade standalone overcommit ip_address ip_netmask ip_gateway ipv6 dns ntp vlan ssh_pwauth syslog_server syslog_port collectd_server collectd_port bootparams hostname firstboot runtime_mode kdump_nfs iscsi_name snmp_password install netconsole_server netconsole_port stateless cim_enabled wipe_fakeraid iscsi_init iscsi_target_name iscsi_target_host iscsi_target_port iscsi_install network_layout"
+    params="bootif init init_app vol_boot_size vol_efi_size vol_swap_size vol_root_size vol_config_size vol_logging_size vol_data_size vol_swap2_size vol_data2_size crypt_swap crypt_swap2 upgrade standalone overcommit ip_address ip_netmask ip_gateway ipv6 dns ntp vlan ssh_pwauth syslog_server syslog_port collectd_server collectd_port bootparams hostname firstboot runtime_mode kdump_nfs iscsi_name snmp_password install netconsole_server netconsole_port stateless cim_enabled wipe_fakeraid iscsi_init iscsi_target_name iscsi_target_host iscsi_target_port iscsi_install network_layout bond_name bond_slaves bond_options"
     # mount /config unless firstboot is forced
     if [ "$firstboot" != "1" ]; then
         mount_config


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc3afd0b901070759d4860f0611da7e2050ff66f
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