virt-install: Move cloudinit password printing before guest start

Otherwise if the timeout is hit, the user may miss VM boot output

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2019-11-25 13:52:53 -05:00
parent 04b15f0dba
commit 747c1e9d11

View File

@ -675,6 +675,8 @@ def start_install(guest, installer, options):
domain = None
try:
_print_cloudinit_passwd(installer)
waithandler.start()
domain = installer.start_install(guest, meter=meter,
@ -684,8 +686,6 @@ def start_install(guest, installer, options):
if options.destroy_on_exit:
atexit.register(_destroy_on_exit, domain)
_print_cloudinit_passwd(installer)
cli.connect_console(guest, domain, conscb,
waithandler.wait_for_console_to_exit,
options.destroy_on_exit)