Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2015-04-13 22:00:06 +1000
committerOlivier Mehani <shtrom@ssji.net>2015-04-13 22:00:06 +1000
commita33ea523d26fd4e6061a5963040c0c86c990ce78 (patch)
tree2080cff58a90f987c3db110a5844eb6fd01a917c
parentb31282097737ce2f5b3e2ce0011257cd43bd58ca (diff)
Make the size of the generated image parametrableimgsize
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--Makefile1
-rwxr-xr-xbin/mk_freedombox_image3
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f1f3178..9314374 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ TODAY := `date +%Y-%m-%d`
NAME = build/freedombox-unstable_$(TODAY)_$(BUILD)
WEEKLY_DIR = torrent/freedombox-unstable_$(TODAY)
IMAGE = $(NAME).img
+IMGSIZE = 4G
ARCHIVE = $(NAME).tar.bz2
SIGNATURE = $(ARCHIVE).sig
SUITE = sid
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index 81144f1..b88f66f 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -18,6 +18,7 @@ set -e # Exit on first error
#set -x # Enable debugging
IMAGE=$1
+export IMGSIZE
export ARCHITECTURE
export DESTINATION
export MACHINE
@@ -141,7 +142,7 @@ sudo -H \
$VMDEBOOTSTRAP \
--log $(dirname $IMAGE)/freedombox.log \
--log-level debug \
- --size 4G \
+ --size $IMGSIZE \
--image $IMAGE.img \
--hostname freedombox \
--verbose \