summaryrefslogtreecommitdiff
path: root/build-all.sh
diff options
context:
space:
mode:
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"