aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-08 23:41:21 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-08 23:41:21 +0100
commita5205c200d4c7085037d9679d8182e751a8f30c6 (patch)
treeaa53eec0ee7861142897ff8b7f8c4dfc1ed1b945
parentChanged Gearman test client to accept config path as an argument, added waiti... (diff)
downloadgentoaster-a5205c200d4c7085037d9679d8182e751a8f30c6.tar.gz
gentoaster-a5205c200d4c7085037d9679d8182e751a8f30c6.tar.bz2
gentoaster-a5205c200d4c7085037d9679d8182e751a8f30c6.zip
Moving to non-calcuated RootFS size (this makes more sense if we're using a two part slider on the WebUI)
-rwxr-xr-xcreate_image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/create_image.sh b/create_image.sh
index b2d264c..0cc7f4f 100755
--- a/create_image.sh
+++ b/create_image.sh
@@ -43,7 +43,7 @@ source ${RUNNING_DIRECTORY}/parse_config.sh ${FLAGS_config} 2>/dev/null || handl
# Generate a few helper variables using the configuration file
IMAGE_NAME="${BUILD_ID}.image"
-ROOT_MEGABYTES=$(( ${IMAGE_MEGABYTES} - ( ${BOOT_MEGABYTES} + ${SWAP_MEGABYTES} + 1 ) ))
+IMAGE_MEGABYTES=$(( ${BOOT_MEGABYTES} + ${SWAP_MEGABYTES} + ${ROOT_MEGABYTES} + 1 ))
IMAGE_BYTES=$(( ${IMAGE_MEGABYTES} * 1024 * 1024 ))
IMAGES_OUTPUT_PATH=`pwd`
IMAGE_WORK_PATH="${IMAGES_OUTPUT_PATH}/${BUILD_ID}"