Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignan Lavu <vignan.lavu@gmail.com>2015-01-10 23:01:57 +0530
committerVignan Lavu <vignan.lavu@gmail.com>2015-01-10 23:01:57 +0530
commitdbfa5d26ea5bb1b6d0bdcb0f03d6330cb7bf52f6 (patch)
tree7cee70494df667a286c17b7a0b8b163e56ace909 /bin/mk_freedombox_image
parent0569813436e7b7c283dc827bba15ec54667f1ddb (diff)
Add ability to set build and image mirrors separately
Currently if a local Debian mirror such as apt-cacher-ng is set during build, the resulting images will also contain the same mirror which is not desirable. This patch separates the mirror used to build the image from the mirror used inside the final image. By default build mirror and image mirror are the same. However, build mirror can be specified by passing an environment variable BUILD_MIRROR to the make command. make -e BUILD_MIRROR=<build_mirror> user concern to set mirrors.
Diffstat (limited to 'bin/mk_freedombox_image')
-rwxr-xr-xbin/mk_freedombox_image3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index b550bb5..f0badf9 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -117,6 +117,7 @@ echo "starting vmdebootstrap"
sudo -H \
SUITE="$SUITE" \
MIRROR="$MIRROR" \
+ BUILD_MIRROR="$BUILD_MIRROR"\
DESTINATION="$DESTINATION" \
MACHINE="$MACHINE" \
ARCHITECTURE="$ARCHITECTURE" \
@@ -127,7 +128,7 @@ sudo -H \
--image $IMAGE.img \
--hostname freedombox \
--verbose \
- --mirror $MIRROR \
+ --mirror $BUILD_MIRROR \
--customize "$basedir/bin/freedombox-customize" \
--lock-root-password \
--arch $ARCHITECTURE \