Default to 2G images for mesh nodes

This commit is contained in:
Bob Mottram 2016-05-30 20:47:40 +01:00
parent c202ad4e6e
commit 970417a972
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,7 @@ VMDEBOOTSTRAP_REPO=git://git.liw.fi/vmdebootstrap
VMDEBOOTSTRAP_VERSION=0.8
MAKEFILE=${PROJECT_NAME}-image-makefile
IMAGE_SIZE=8G
IMAGE_SIZE_SPECIFIED=
IMAGE_NAME='full'
USERNAME=$(echo $USER)
@ -173,6 +174,7 @@ do
-s|--size)
shift
IMAGE_SIZE="$1"
IMAGE_SIZE_SPECIFIED=1
;;
# Box static IP address on the LAN
--ip)
@ -340,6 +342,10 @@ fi
if [[ $VARIANT == 'mesh' ]]; then
IMAGE_NAME=$'mesh'
# typically not much disk space is needed for a mesh node
if [ ! $IMAGE_SIZE_SPECIFIED ]; then
IMAGE_SIZE=2G
fi
fi
cd $TEMPBUILD_DIR