Blame SOURCES/koan-rhel7-ppc.patch

1070a0
diff -rupN cobbler-2.0.7-old/koan/app.py cobbler-2.0.7-new/koan/app.py
1070a0
--- cobbler-2.0.7-old/koan/app.py	2014-03-18 13:53:31.916116417 -0400
1070a0
+++ cobbler-2.0.7-new/koan/app.py	2014-03-18 13:56:36.590423095 -0400
1070a0
@@ -875,14 +875,17 @@ class Koan:
1070a0
             # Are we running on ppc?
1070a0
             if not ANCIENT_PYTHON:
1070a0
                if arch.startswith("ppc"):
1070a0
-                   cmd.append("--yaboot")
1070a0
+                   if "grub2" in probe_output:
1070a0
+                       cmd.append("--grub2")
1070a0
+                   else:
1070a0
+                       cmd.append("--yaboot")
1070a0
                elif arch.startswith("s390"):
1070a0
                    cmd.append("--zipl")
1070a0
 
1070a0
             utils.subprocess_call(cmd)
1070a0
 
1070a0
             # Any post-grubby processing required (e.g. ybin, zipl, lilo)?
1070a0
-            if not ANCIENT_PYTHON and arch.startswith("ppc"):
1070a0
+            if not ANCIENT_PYTHON and arch.startswith("ppc") and "grub2" not in probe_output:
1070a0
                 # FIXME - CHRP hardware uses a 'PPC PReP Boot' partition and doesn't require running ybin
1070a0
                 print "- applying ybin changes"
1070a0
                 cmd = [ "/sbin/ybin" ]