File fix-koan-missing-args-and-location.patch of Package cobbler

Index: cobbler-2.6.6/koan/virtinstall.py
===================================================================
--- cobbler-2.6.6.orig/koan/virtinstall.py
+++ cobbler-2.6.6/koan/virtinstall.py
@@ -338,13 +338,14 @@ def build_commandline(uri,
         elif oldstyle_accelerate:
             cmd += "--accelerate "
 
-        if virt_pxe_boot or is_xen:
+        if virt_pxe_boot:
             cmd += "--pxe "
         elif cdrom:
             cmd += "--cdrom %s " % cdrom
         elif location:
             cmd += "--location %s " % location
-            if is_qemu and extra and not(virt_pxe_boot) and not(disable_extra):
+            if ((is_qemu or is_xen)
+                    and extra and not(virt_pxe_boot) and not(disable_extra)):
                 cmd += ("--extra-args=\"%s\" " % (extra))
         elif importpath:
             cmd += "--import "
openSUSE Build Service is sponsored by