diff options
author | varac <varacanero@zeromail.org> | 2012-10-09 15:56:48 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-10-09 15:56:48 +0200 |
commit | 4fd1fb662a69413004a17bc1b2b0acfd430f38a8 (patch) | |
tree | 453b433c47e21570059e530e61526423b4c981dc | |
parent | 096642065e8e7398a957bebabbbc85b691bec3b4 (diff) |
call helper scripts from git working dir
-rwxr-xr-x | create-guest-with-cloudinit | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/create-guest-with-cloudinit b/create-guest-with-cloudinit index 56eec5f..cee53a8 100755 --- a/create-guest-with-cloudinit +++ b/create-guest-with-cloudinit @@ -1,8 +1,11 @@ #!/bin/sh + + VG='vg01' ETC='/etc/cloudinit' VARDIR='/var/lib/libvirt/cloudinit' +SCRIPTDIR='/usr/local/bin/leap_cloudadmin' fail() { [ $# -eq 0 ] || echo "$@"; exit 1; } bad_usage() { usage 1>&2; [ $# -eq 0 ] || fail "$@"; exit 1; } @@ -66,8 +69,8 @@ virt-clone -o leap-baseimage-wheezy -n $vmname -f /dev/$VG/$vmname --force # resize second (root) partition echo ",+," | sfdisk -N2 /dev/$VG/$vmname > /dev/null -libvirt-make-seed-disk $VARDIR/$vmname-user-data.img $userdata -libvirt-write-disk-attach-xml $VARDIR/$vmname-user-data.img > $VARDIR/$vmname-disk-attach.xml +$SCRIPTDIR/libvirt-make-seed-disk $VARDIR/$vmname-user-data.img $userdata +$SCRIPTDIR/libvirt-write-disk-attach-xml $VARDIR/$vmname-user-data.img > $VARDIR/$vmname-disk-attach.xml echo echo "Attached userdata-disk is at $VARDIR/$vmname-user-data.img" |