[Kimchi-devel] [PATCH] Bug fix: Use qxl video model for Fedora 22+ guests

Aline Manera alinefm at linux.vnet.ibm.com
Tue Nov 10 11:20:09 UTC 2015


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 at 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
-- 
2.5.0




More information about the Kimchi-devel mailing list