summaryrefslogtreecommitdiff
path: root/build-all.sh
blob: fca81a3e75e028b3f80488e1606d00e05f1cfbc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eu

image()
{
    local img="$1"
    local tarball="$2"

    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"