[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



---
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]