diff options
author | James Laska <jlaska@redhat.com> | 2009-02-27 12:01:56 -0500 |
---|---|---|
committer | James Laska <jlaska@redhat.com> | 2009-03-03 11:42:26 -0500 |
commit | fade81f7a265adba7d23d445dde9d6df01dbdfaa (patch) | |
tree | b4f24c30da806486c86f7f43c0ddf2c58b3289e3 /cobbler | |
parent | 2528d228f44dbbcad631ca969435e38dc18910df (diff) | |
download | cobbler-fade81f7a265adba7d23d445dde9d6df01dbdfaa.tar.gz cobbler-fade81f7a265adba7d23d445dde9d6df01dbdfaa.tar.xz cobbler-fade81f7a265adba7d23d445dde9d6df01dbdfaa.zip |
Add zPXE support for 'local' boot target.
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/pxegen.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py index 087674ff..731d7272 100644 --- a/cobbler/pxegen.py +++ b/cobbler/pxegen.py @@ -498,8 +498,8 @@ class PXEGen: blended["kernel_options"] = hkopts self.templar.render(template_pf, blended, pf) - # Write system specific zPXE file if netboot_enabled? - if system.netboot_enabled: + # Write system specific zPXE file + if system.is_management_supported(): self.write_pxe_file(f2,system,profile,distro,distro.arch) else: # ensure the file doesn't exist @@ -787,6 +787,8 @@ class PXEGen: # Yaboot/OF doesn't support booting locally once you've # booted off the network, so nothing left to do return None + elif arch is not None and arch.startswith("s390"): + template = os.path.join(self.settings.pxe_template_dir,"pxelocal_s390x.template") else: template = os.path.join(self.settings.pxe_template_dir,"pxelocal.template") else: |