virt-install: Encode guest defaults earlier

We need this for determining correct console tool to launch,
and probably other checks later
This commit is contained in:
Cole Robinson 2018-10-11 12:18:27 -04:00
parent 215d296b61
commit 63b4d1f154
2 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ def main(conn=None):
guest = converter.get_guest()
installer = Installer(guest.conn)
installer.set_install_defaults(guest)
conscb = None
if options.autoconsole:

View File

@ -541,6 +541,7 @@ def build_guest_instance(conn, options):
installer = build_installer(options, guest)
if installer:
set_distro_variant(options, guest, installer)
installer.set_install_defaults(guest)
validate_required_options(options, guest, installer)
check_option_collisions(options, guest, installer)