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:
Marek Marczykowski-Górecki 2014-09-16 01:20:06 +02:00
parent 355ed640b2
commit 4913fc4fbc

View File

@ -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])