Tested-By: Paulo Vital <pvital(a)linux.vnet.ibm.com>
Reviewed-By: Paulo
Vital <pvital(a)linux.vnet.ibm.com>
On Tue, 2015-11-10 at 09:20 -0200, Aline Manera wrote:
After creating a Fedora 23 guest, the login screen was not displayed
due the wrong video model configured by Kimchi. Since qxl video model
is
the default for Fedora 22, update Kimchi to set it to every Fedora
guests newer than 22 version.
For reference:
https://github.com/kimchi-project/kimchi/issues/647
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/wok/plugins/kimchi/osinfo.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/wok/plugins/kimchi/osinfo.py
b/src/wok/plugins/kimchi/osinfo.py
index 75a21ff..7f8ace9 100644
--- a/src/wok/plugins/kimchi/osinfo.py
+++ b/src/wok/plugins/kimchi/osinfo.py
@@ -216,7 +216,10 @@ def lookup(distro, version):
params.update(template_specs[arch]['old'])
# Get custom specifications
- params.update(custom_specs.get(distro, {}).get(version, {}))
+ specs = custom_specs.get(distro, {})
+ for v, config in specs.iteritems():
+ if LooseVersion(version) >= LooseVersion(v):
+ params.update(config)
if distro in icon_available_distros:
params['icon'] = 'plugins/kimchi/images/icon-%s.png' %
distro