diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-09-11 18:19:09 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-09-11 16:22:40 -0400 |
commit | d6d97c658771f75d2a1fdfeeac02ee7bfb106b88 (patch) | |
tree | 26f8977a8d077e78c78d772aed396c7cf0251dd5 /virtinst/osdict.py | |
parent | 0f1acc9f8f392eaf5edd30ce239728afd1f924cf (diff) | |
download | virt-manager-d6d97c658771f75d2a1fdfeeac02ee7bfb106b88.tar.gz |
osdict: Choose the most appropriate tree when a profile is set
As some OSes, as Fedora, have variants (which we rely to be standardised
on osinfo-db side), let's select the most appropriate variant according
to the selected profile of the unattended installation.
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'virtinst/osdict.py')
-rw-r--r-- | virtinst/osdict.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/virtinst/osdict.py b/virtinst/osdict.py index eb26ddb9..a077170b 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -628,7 +628,11 @@ class _OsVariant(object): return None fallback_tree = None - if not profile: + if profile == "jeos": + profile = "Server" + elif profile == "desktop": + profile = "Workstation" + elif not profile: profile = "Everything" for tree in treelist: |