mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-10 01:18:03 +03:00
osdict: Re-purpose supports_unattended_drivers()
supported_unattended_drivers() was originally added as a way to tell whether a guest could support pre & post installable drivers. This is wrong for two reasons: - virt-install cannot deal with post-installable drivers/agents; - pre-installable drivers are the only ones needed in order to perform an unattended installation taking advantage of virtio-win drivers; Knowing that, let's only check for pre-installable drivers in supported_unattended_drivers(). Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
9465da4174
commit
89a2a71328
@ -733,8 +733,7 @@ class _OsVariant(object):
|
||||
return self._get_drivers_location(post_inst_drivers)
|
||||
|
||||
def supports_unattended_drivers(self, arch):
|
||||
if (self._get_pre_installable_drivers(arch) and
|
||||
self._get_post_installable_drivers(arch)):
|
||||
if self._get_pre_installable_drivers(arch):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user