X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/564b18acf76994fd9196bb031e585c9f6afc0d0c..4b902b6ac877a0db060684f3a6fd97e33cbacf77:/files/usr/sbin/sipb-xen-lvcopy diff --git a/files/usr/sbin/sipb-xen-lvcopy b/files/usr/sbin/sipb-xen-lvcopy index 317b88a..53c5aa8 100755 --- a/files/usr/sbin/sipb-xen-lvcopy +++ b/files/usr/sbin/sipb-xen-lvcopy @@ -48,6 +48,9 @@ def frob_copy(target, hostname, rootpw): call(['losetup', '-d', fs]) def duplicate_by_vm(source, target, rootpw, nodd=False, nofrob=False): + if source != "ice3": + print "Error: can't clone that VM" + sys.exit(1) # source, target should be machine names prefix = 'd_' # 1. copy (by dd) source to target