projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't bother avoiding checksums.
[invirt/packages/invirt-autoinstaller.git]
/
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
(executable)
--- 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):
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
# source, target should be machine names
prefix = 'd_'
# 1. copy (by dd) source to target