aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2014-12-01 14:17:25 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2014-12-01 14:17:25 +0000
commit2f8490e29fe29a9f360753b6317d771bbcd931e3 (patch)
tree85d38dbf533bb4427ebf1fef3f2729c670632310
parent12d4ed29fd63cbdb7bd216a7c1d1aaf9f199cad5 (diff)
build: don't assume series == trusty
Use SERIES=<your-preferred-series> ./build
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/build b/build
index d291d6f..6f88fe1 100755
--- a/build
+++ b/build
@@ -27,8 +27,10 @@ if [ -f extra-packages ]; then
packages="$(echo ${packages},${extra_packages} | sed -s 's/,$//')"
fi
+: ${SERIES:=$(lsb_release -c | awk '{print $2}')}
+
sudo apt-get install -y debootstrap qemu-user-static binfmt-support
-sudo debootstrap --include=$packages --foreign --arch arm64 trusty $DEST
+sudo debootstrap --include=$packages --foreign --arch arm64 $SERIES $DEST
#sudo cp /usr/bin/qemu-aarch64-static $DEST/usr/bin
sudo $xchroot $DEST /debootstrap/debootstrap --second-stage
sudo $xchroot $DEST dpkg-reconfigure -a