[Ovirt-devel] [PATCH node] show firstboot menu only once

Alan Pevec apevec at redhat.com
Thu Dec 11 16:19:12 UTC 2008


---
 scripts/ovirt-firstboot |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/scripts/ovirt-firstboot b/scripts/ovirt-firstboot
index eb22d07..765c80e 100755
--- a/scripts/ovirt-firstboot
+++ b/scripts/ovirt-firstboot
@@ -44,9 +44,15 @@ start ()
         ovirt-config-networking AUTO
         newrole -r system_r -t virtd_t -- -c 'ovirt-config-storage AUTO'
         ovirt-config-logging AUTO
-    else
+    elif [ -z "$OVIRT_FIRSTBOOT" -o "$OVIRT_FIRSTBOOT" = "yes" ]; then
         ovirt-config-setup
     fi
+    if mount_config; then
+        augtool -r /config <<EOF
+set /files$OVIRT_DEFAULTS/OVIRT_FIRSTBOOT no
+save
+EOF
+    fi
 }
 
 case "$1" in
-- 
1.6.0.4




More information about the ovirt-devel mailing list