mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 10:25:25 +03:00
virt-install: Fix warning about missing --os-variant
We always at least have os_variant == "generic" now
This commit is contained in:
parent
b45f676086
commit
f99be58ab1
@ -535,7 +535,8 @@ def show_warnings(options, guest):
|
||||
logging.warn(_("The guest's network configuration does not support "
|
||||
"PXE"))
|
||||
|
||||
if not guest.os_variant and options.distro_variant != "none":
|
||||
if (guest.os_variant == "generic" and
|
||||
options.distro_variant not in ["none", "generic"]):
|
||||
logging.warn(_("No operating system detected, VM performance may "
|
||||
"suffer. Specify an OS with --os-variant for optimal results."))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user