cobbler/SOURCES/cobbler-s390-kernel-options.patch

22 lines
1.0 KiB
Diff
Raw Normal View History

diff -rupN cobbler-2.0.11.old/cobbler/utils.py cobbler-2.0.11/cobbler/utils.py
--- cobbler-2.0.11.old/cobbler/utils.py.org
+++ cobbler-2.0.11/cobbler/utils.py
@@ -615,9 +615,16 @@ def blender(api_handle,remove_hashes, ro
# hack -- s390 nodes get additional default kernel options
arch = results.get("arch","?")
if arch.startswith("s390"):
+ blacklist_options = []
+ version = results.get("os_version")
+ if ((version.startswith("rhel") and version >= "rhel7") or
+ (version.startswith("fedora") and version >= "fedora17")):
+ # these options were removed from default kernel options
+ blacklist_options.append("ip")
+ blacklist_options.append("root")
keyz = settings.kernel_options_s390x.keys()
for k in keyz:
- if not results.has_key(k):
+ if not results.has_key(k) and k not in blacklist_options:
results["kernel_options"][k] = settings.kernel_options_s390x[k]
# Get topmost object to determine which breed we're dealing with