summaryrefslogtreecommitdiff
path: root/build-all.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-05-31 12:14:53 +0300
committerLars Wirzenius <liw@liw.fi>2019-05-31 12:14:53 +0300
commitc78f6f8babec7a44e68add667ebc6da1657e4aba (patch)
tree3c850a155797287dbcb2ac230d9b6edf71bb5e4e /build-all.sh
parent910a094152d2ed0c1279eef490beb55c1edfd1f7 (diff)
downloadbase-image-specs-c78f6f8babec7a44e68add667ebc6da1657e4aba.tar.gz
Change: base image and build script for Debian buster as host
Diffstat (limited to 'build-all.sh')
-rwxr-xr-xbuild-all.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/build-all.sh b/build-all.sh
index 814b292..fca81a3 100755
--- a/build-all.sh
+++ b/build-all.sh
@@ -2,7 +2,17 @@
set -eu
-opts="--verbose"
+image()
+{
+ local img="$1"
+ local tarball="$2"
-vmdb2 base.vmdb $opts --output debian9-amd64.img --rootfs-tarball debian9-amd64.tar.gz
-xz -f --verbose debian9-amd64.img
+ vmdb2 base.vmdb \
+ --output "$img" \
+ --verbose \
+ --log base.log \
+ --rootfs-tarball "$tarball"
+ xz -v1T0 "$img"
+}
+
+image debian9-ick.img "/home/liw/tmp/debian9.tar.gz"