diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-09-24 14:07:46 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-10-02 11:58:34 -0400 |
commit | 89a2a71328462d8090b9fc5cafcaf566e25306fc (patch) | |
tree | 46c8c68d5290f37d11243fa0138fd9eda50f8d19 | |
parent | 9465da4174e778e7607908f18d74fd8aa2cba2fe (diff) | |
download | virt-manager-89a2a71328462d8090b9fc5cafcaf566e25306fc.tar.gz |
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>
-rw-r--r-- | virtinst/osdict.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/virtinst/osdict.py b/virtinst/osdict.py index a077170b..3b9fbe43 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -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 |