Fixes a typo found by aclement.
Darryl L. Pierce
2010-Feb-23 19:38 UTC
[Ovirt-devel] [PATCH] Supports setting the OVIRT_RUNTIME_MODE value from the kernel cmdline.
This argument should override what is defined in the /etc/sysconfig/node-config file if the karg is present. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- scripts/ovirt-early | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/scripts/ovirt-early b/scripts/ovirt-early index c3befdc..71d5a0c 100755 --- a/scripts/ovirt-early +++ b/scripts/ovirt-early @@ -182,6 +182,7 @@ start() { # ovirt_upgrade # ovirt_standalone # ovirt_firstboot + # ovirt_runtime_mode # rescue # pxelinux format: ip=<client-ip>:<boot-server-ip>:<gw-ip>:<netmask> # anaconda format: ip=<client-ip> netmask=<netmask> gateway=<gw-ip> @@ -243,6 +244,10 @@ start() { # in auto-install mode, overwrite the disk chosen by ovirt_init parameter firstboot + # ovirt_runtime_mode + # overrides the runtime mode defined in /etc/sysconfig/node-config + runtime_mode+ # rescue # enter emergency shell for fixing configuration issues rescue@@ -362,6 +367,11 @@ start() { ovirt_firstboot*) firstboot=1 ;; + + runtime_mode*) + runtime_mode=${i#runtime_mode=} + ;; + rescue) rescue=1 ;; @@ -434,7 +444,7 @@ start() { ip_gateway=$gateway fi # save boot parameters as defaults for ovirt-config-* - params="bootif init vol_boot_size vol_swap_size vol_root_size vol_config_size vol_logging_size vol_data_size 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" + params="bootif init vol_boot_size vol_swap_size vol_root_size vol_config_size vol_logging_size vol_data_size 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" # mount /config unless firstboot is forced if [ "$firstboot" != "1" ]; then mount_config -- 1.6.6