Blame SOURCES/koan-remove-root-argument.patch

1330ca
diff -rupN cobbler-2.0.7.old/koan/app.py cobbler-2.0.7/koan/app.py
1330ca
--- cobbler-2.0.7.old/koan/app.py.org    2016-03-15 12:58:22.739224509 -0400
1330ca
+++ cobbler-2.0.7/koan/app.py            2016-03-15 12:58:49.898224509 -0400
1330ca
@@ -922,6 +922,17 @@ class Koan:
1330ca
1330ca
             utils.subprocess_call(cmd)
1330ca
1330ca
+            # Need to remove the root= argument to prevent booting the current OS
1330ca
+            cmd = [
1330ca
+                "/sbin/grubby",
1330ca
+                "--update-kernel",
1330ca
+                self.safe_load(
1330ca
+                    profile_data,
1330ca
+                    'kernel_local'),
1330ca
+                "--remove-args=root"]
1330ca
+
1330ca
+            utils.subprocess_call(cmd)
1330ca
+
1330ca
             # Any post-grubby processing required (e.g. ybin, zipl, lilo)?
1330ca
             if not ANCIENT_PYTHON and arch.startswith("ppc") and "grub2" not in probe_output:
1330ca
                 # FIXME - CHRP hardware uses a 'PPC PReP Boot' partition and doesn't require running ybin