File koan-detect-os_version.dif of Package koan

Index: koan-2.9.0/koan/virtinstall.py
===================================================================
--- koan-2.9.0.orig/koan/virtinstall.py
+++ koan-2.9.0/koan/virtinstall.py
@@ -384,6 +384,11 @@ def build_commandline(uri,
                 suse_version_re = re.compile("^(opensuse[0-9]+)\.([0-9]+)$")
                 if suse_version_re.match(os_version):
                     os_version = suse_version_re.match(os_version).groups()[0]
+                elif os_version == "generic26":
+                    os_version = "sles11"
+                elif os_version.endswith("generic"):
+                    os_version = os_version.replace("generic", "")
+
             # make sure virt-install knows about our os_version,
             # otherwise default it to virtio26 or generic26
             # found = False
openSUSE Build Service is sponsored by