summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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