[Ovirt-devel] [PATCH node] Fixes a bug in the storage size configuration.
Darryl L. Pierce
dpierce at redhat.com
Fri Dec 5 22:52:43 UTC 2008
When the user input values, those values were not being copied
correctly.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-config-storage | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 49e1880..5c666ba 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -254,12 +254,12 @@ case $MEM_SIZE in
esac
MEM_SIZE=$(echo "scale=0; $MEM_SIZE / 1024" | bc -l)
-SWAP_SIZE=${OVIRT_VOL_SWAP_SIZE:-MEM_SIZE}
+SWAP_SIZE=${OVIRT_VOL_SWAP_SIZE:-$MEM_SIZE}
-BOOT_SIZE=${OVIRT_VOL_BOOT_SIZE:-default_boot_size}
-ROOT_SIZE=${OVIRT_VOL_ROOT_SIZE:-default_root_size}
-CONFIG_SIZE=${OVIRT_VOL_CONFIG_SIZE:-default_config_size}
-LOGGING_SIZE=${OVIRT_VOL_LOGGING_SIZE:-default_logging_size}
+BOOT_SIZE=${OVIRT_VOL_BOOT_SIZE:-$default_boot_size}
+ROOT_SIZE=${OVIRT_VOL_ROOT_SIZE:-$default_root_size}
+CONFIG_SIZE=${OVIRT_VOL_CONFIG_SIZE:-$default_config_size}
+LOGGING_SIZE=${OVIRT_VOL_LOGGING_SIZE:-$default_logging_size}
if [ "$1" == "AUTO" ]; then
--
1.6.0.4
More information about the ovirt-devel
mailing list