summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laska <jlaska@redhat.com>2009-02-25 16:27:36 -0500
committerJames Laska <jlaska@redhat.com>2009-02-27 08:28:44 -0500
commitbde42f9187381c8f28ae5c06801ff47838740cf2 (patch)
tree87d0bb726eb75471ca3d90e8fa5ddd8213a16283
parentfc9780b4b4ceabe9ca1ae0b15f3d23119999fe52 (diff)
downloadcobbler-bde42f9187381c8f28ae5c06801ff47838740cf2.tar.gz
cobbler-bde42f9187381c8f28ae5c06801ff47838740cf2.tar.xz
cobbler-bde42f9187381c8f28ae5c06801ff47838740cf2.zip
just adding a FIXME and changing an arch comparison in write_pxe_file()
-rw-r--r--cobbler/pxegen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index e003a9d9..087674ff 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -815,6 +815,7 @@ class PXEGen:
else:
append_line = "append %s" % hkopts
+ # FIXME - the append_line length limit is architecture specific
if len(append_line) >= 255 + len("append "):
print _("warning: kernel option length exceeds 255")
@@ -837,7 +838,7 @@ class PXEGen:
# interface=bootif causes a failure
# append_line = append_line.replace("ksdevice","interface")
- if arch in ["s390", "s390x", "ppc", "ppc64"]:
+ if arch.startswith("ppc") or arch.startswith("s390"):
# remove the prefix "append"
append_line = append_line[7:]