diff options
author | James Laska <jlaska@redhat.com> | 2009-02-25 16:27:36 -0500 |
---|---|---|
committer | James Laska <jlaska@redhat.com> | 2009-02-27 08:28:44 -0500 |
commit | bde42f9187381c8f28ae5c06801ff47838740cf2 (patch) | |
tree | 87d0bb726eb75471ca3d90e8fa5ddd8213a16283 | |
parent | fc9780b4b4ceabe9ca1ae0b15f3d23119999fe52 (diff) | |
download | cobbler-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.py | 3 |
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:] |