blob: dcb322d124b6eade9f0e465f4758245cd69a6a24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/bash
set -euo pipefail
vi="$1"
vmdb2="$2"
gitget() {
local url="$1"
local branch="$2"
local dir="$3"
echo "get $url ($branch)"
if [ ! -e "$dir" ]; then
git clone -b "$branch" "$url"
else
(cd "$dir" && git checkout "$branch" && git pull)
fi
}
git config --global pull.ff only
gitget git://git.liw.fi/v-i "$vi" v-i
gitget git://git.liw.fi/vmdb2 "$vmdb2" vmdb2
gitget git://git.liw.fi/ansibleness main ansibleness
gitget git://git.liw.fi/debian-ansible main debian-ansible
cd v-i
export ANSIBLE_LOG=/root/ansible.log
export ANSIBLE_ROLES_PATH=/root/debian-ansible/roles:/root/ansibleness/ansible/roles
rm -f /root/x220.log
/root/vmdb2/vmdb2 \
--verbose \
--rootfs-tarball /root/rootfs.tar.gz \
--log /root/x220.log \
--image /dev/sda \
x220.vmdb
|