Configurable image size

This commit is contained in:
Bob Mottram 2015-11-21 13:16:49 +00:00
parent 6a2019dfc9
commit 432814e973
1 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,7 @@ BUILD_DIR=~/.tmp_${PROJECT_NAME}_build
VMDEBOOTSTRAP_REPO=git://git.liw.fi/vmdebootstrap
VMDEBOOTSTRAP_VERSION=0.8
MAKEFILE=${PROJECT_NAME}-image-makefile
IMAGE_SIZE=4G
USERNAME=$(echo $USER)
PASSWORD=
@ -83,6 +84,10 @@ case $key in
shift
PASSWORD="$1"
;;
-s|--size)
shift
IMAGE_SIZE="$1"
;;
# Box static IP address on the LAN
--ip)
shift
@ -156,7 +161,8 @@ make $IMAGE_TYPE \
NAMESERVER1="$NAMESERVER1" \
NAMESERVER2="$NAMESERVER2" \
PROJECT_NAME="$PROJECT_NAME" \
CONFIG_FILENAME="$CONFIG_FILENAME"
CONFIG_FILENAME="$CONFIG_FILENAME" \
IMAGE_SIZE="$IMAGE_SIZE"
shopt -s nullglob
imgfiles=(build/${PROJECT_NAME}*.img)