diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-12-25 15:22:15 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-02-29 10:48:03 +0200 |
commit | e2762720881ff3cfc91bf25605df0f3afcb3dccd (patch) | |
tree | 11d0cc1c7b2244cea049b41645177e4b19060821 | |
parent | 0fa9b518f3244f46edd272419c97e8bf6348d70d (diff) | |
download | v-i-e2762720881ff3cfc91bf25605df0f3afcb3dccd.tar.gz |
Add: script to build v-i image
-rw-r--r-- | README.md | 5 | ||||
-rwxr-xr-x | v-i.sh | 9 |
2 files changed, 12 insertions, 2 deletions
@@ -64,10 +64,11 @@ The main files are: this is used from the system booted from the image built by v-i.vmdb * x220.yml -- the Ansible playbook used by x220.vmdb -To build the installer image, run +To build the installer image, run (the cached tarball will be created +if it doesn't exist, but you need to choose the location): ~~~sh -sudo ./v-i.sh +sudo ./v-i.sh /path/to/rootfs/tarball/for/caching/debootstrap.tar.gz ~~~ To write the resulting v-i.img to a USB drive: @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eu -o pipefail + +tarball="$1" + +vmdb2 --output v-i.img --log v-i.log v-i.vmdb \ + --verbose --rootfs-tarball "$tarball" + |