summaryrefslogtreecommitdiff
path: root/x220.sh
diff options
context:
space:
mode:
Diffstat (limited to 'x220.sh')
-rwxr-xr-xx220.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/x220.sh b/x220.sh
deleted file mode 100755
index dcb322d..0000000
--- a/x220.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/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