summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-17 14:15:35 +0100
committervarac <varacanero@zeromail.org>2013-01-17 14:15:35 +0100
commit613ccd484d2dad6dbfe23fa91ed617a96cec68f5 (patch)
tree2ada993c5818186911d01dbd60403d3de121a1ca
parente8a25ba586ca5a9724efe510a36eb1c1c1cde2ee (diff)
squeeze: mkswap uses only -U , no --uuid
-rwxr-xr-xcreate-guest-with-cloudinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/create-guest-with-cloudinit b/create-guest-with-cloudinit
index 6906dcf..8b64fd8 100755
--- a/create-guest-with-cloudinit
+++ b/create-guest-with-cloudinit
@@ -118,7 +118,7 @@ if [ $? -eq 0 ]; then fail "Domain $vmname is defined in libvirt. Please undefin
# create root and swap disk
lvcreate -L ${rootsize}g -n ${vmname}-root $VG
lvcreate -L ${swapsize}m -n ${vmname}-swap $VG
-mkswap --uuid $SWAPUUID $swapdev
+mkswap -U $SWAPUUID $swapdev
sleep 4
virt-clone --connect $KVM_URI -o $BASEIMAGE -n $vmname -f $rootdev --force