[Ovirt-devel] [PATCH node] Adds support for a using default storage configuration. bz#503997

Darryl L. Pierce dpierce at redhat.com
Wed Jun 3 18:45:33 UTC 2009


When the user selects to configure storage, after they select a drive
(or the only storage device is pre-selected), they are shown the default
storage configuration layout. They are then asked if they wish to use
that default configuration or configure things manually.

Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 scripts/ovirt-config-storage |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 356b7df..0fcc0bc 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -204,6 +204,13 @@ do_configure()
     printf "* For the Data partition, a size of -1 indicates that the\n"
     printf "  partition should use up the remaining space on the disk.\n\n"
 
+    do_review
+    read -ep "Use these default values? (Y/n) "
+
+    case $REPLY in
+        Y|y) return;;
+    esac
+
     local space_left=$SPACE
     for part in boot swap root config logging data ; do
         part_regexp="^0$"
-- 
1.6.0.6




More information about the ovirt-devel mailing list