call helper scripts from git working dir
authorvarac <varacanero@zeromail.org>
Tue, 9 Oct 2012 13:56:48 +0000 (15:56 +0200)
committervarac <varacanero@zeromail.org>
Tue, 9 Oct 2012 13:56:48 +0000 (15:56 +0200)
create-guest-with-cloudinit

index 56eec5f..cee53a8 100755 (executable)
@@ -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"