qvm-tools: improve messages for qvm-create --root-{move,copy}
There was no separate message, so it looked like registering appmenus takes a long time.
This commit is contained in:
parent
355ed640b2
commit
4913fc4fbc
@ -182,9 +182,13 @@ def main():
|
||||
try:
|
||||
vm.create_on_disk(verbose=options.verbose, source_template=template)
|
||||
if options.root_move:
|
||||
if (options.verbose):
|
||||
print "--> Replacing root.img with provided file"
|
||||
os.unlink(vm.root_img)
|
||||
os.rename(options.root_move, vm.root_img)
|
||||
elif options.root_copy:
|
||||
if (options.verbose):
|
||||
print "--> Replacing root.img with provided file"
|
||||
os.unlink(vm.root_img)
|
||||
# use "cp" to preserve sparse file
|
||||
subprocess.check_call(["cp", options.root_copy, vm.root_img])
|
||||
|
Loading…
Reference in New Issue
Block a user