[Ovirt-devel] [PATCH node] mount /config unless firstboot is forced
Alan Pevec
apevec at redhat.com
Thu Apr 2 12:25:54 UTC 2009
Forced firstboot is for troubleshooting or forced installation
when existing persistent configuration shouldn't be applied
automatically.
Signed-off-by: Alan Pevec <apevec at redhat.com>
---
scripts/ovirt-early | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-early b/scripts/ovirt-early
index 02b949b..dbe5811 100755
--- a/scripts/ovirt-early
+++ b/scripts/ovirt-early
@@ -360,7 +360,10 @@ start() {
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 local_boot standalone overcommit ip_address ip_netmask ip_gateway ipv6 dns ntp syslog_server syslog_port collectd_server collectd_port bootparams hostname firstboot"
- mount_config
+ # mount /config unless firstboot is forced
+ if [ "$firstboot" != "1" ]; then
+ mount_config
+ fi
log "Updating $OVIRT_DEFAULTS"
tmpaug=$(mktemp)
for p in $params; do
--
1.6.0.6
More information about the ovirt-devel
mailing list