mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
osdict: Add supports_unattended_drivers()
Let's add a method which tells us whether pre & post installable drivers are supported when performing unattended installations. This is going to help us in the future in order to force virtio-win usage when unattended installing guests which support it. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
ff337843e6
commit
7bc40eeed1
@ -698,6 +698,12 @@ 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)):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class _OsMedia(object):
|
||||
def __init__(self, osinfo_media):
|
||||
|
Loading…
Reference in New Issue
Block a user