[Ovirt-devel] [PATCH] save configuration changes

Alan Pevec
Tue, 26 Aug 2008 22:34:05 -0000

always issue augtool "save" in ovirt-early, so that generated configs
are
sequence of "set" commands only

Signed-off-by: Alan Pevec <apevec at redhat.com>
---
 ovirt-managed-node/src/scripts/ovirt-early |    1 +
 wui-appliance/common-post.ks               |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ovirt-managed-node/src/scripts/ovirt-early
b/ovirt-managed-node/src/scripts/ovirt-early
index b709632..e5a9ef7 100755
--- a/ovirt-managed-node/src/scripts/ovirt-early
+++ b/ovirt-managed-node/src/scripts/ovirt-early
@@ -35,6 +35,7 @@ configure_from_network() {

"http://$SRV_HOST:$SRV_PORT/ovirt/cfgdb/$(hostname)"
                     if [ $? -eq 0 ]; then
                         printf .
+                        echo "save" >> $cfgdb
                         augtool < $cfgdb > /dev/null 2>&1
                         if [ $? -eq 0 ]; then
                             printf "remote config applied."
diff --git a/wui-appliance/common-post.ks b/wui-appliance/common-post.ks
index 083e831..6ad7b7c 100644
--- a/wui-appliance/common-post.ks
+++ b/wui-appliance/common-post.ks
@@ -83,6 +83,5 @@ set
/files/etc/sysconfig/network-scripts/ifcfg-ovirtbr0/BOOTPROTO dhcp
 set /files/etc/sysconfig/network-scripts/ifcfg-ovirtbr0/ONBOOT y
 set /files/etc/sysconfig/network-scripts/ifcfg-ovirtbr0/TYPE Bridge
 set /files/etc/sysconfig/network-scripts/ifcfg-ovirtbr0/PEERNTP yes
-save
 EOF

--
1.5.4.1