diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-04-18 09:34:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-04-18 09:34:42 +0300 |
commit | b8cb127cdd6dc942ab0e518785926f39475f9d64 (patch) | |
tree | bc7fe8141fc4b7eb0679bbc6170c65d446c9c138 | |
parent | ef03f0f12d75e2ac807da0c676975b6d70284cda (diff) | |
download | ick-contractor-b8cb127cdd6dc942ab0e518785926f39475f9d64.tar.gz |
Refactor: script to build VM images
-rwxr-xr-x | vm.sh | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -2,7 +2,12 @@ set -eu -vmdb2 worker.vmdb --output worker.img --rootfs-tarball vm.tar.gz -v -vmdb2 worker-subplot.vmdb --output worker-subplot.img --rootfs-tarball vm.tar.gz -v -vmdb2 worker-vmdb2.vmdb --output worker-vmdb2.img --rootfs-tarball vm.tar.gz -v -vmdb2 vm.vmdb --output vm.img --rootfs-tarball vm.tar.gz -v +build() { + vmdb2 "$1" --output "$2" --rootfs-tarball vm.tar.gz -v --log vmdb2.log +} + +build vm.vmdb vm.img +build worker.vmdb worker.img +build worker-subplot.vmdb worker-subplot.img +build worker-vmdb2.vmdb worker-vmdb2.img +build worker-scap.vmdb worker-scap.img |