[syslinux] [PATCH] ifgpxe.c32

Geoff Lywood glywood at vmware.com
Mon Sep 13 17:30:31 PDT 2010


ifgpxe.c32 is a com32 module that will run one command if gPXE extensions are available, and a different command if not.

At VMware, we use this module to chain-load gpxelinux.0 from pxelinux.0. Both of those binaries use exactly the same configuration file, and this module allows us to differentiate between the two cases and break the infinite chain-loading loop that might result. Typical usage:

   default ifgpxe.c32 menu.c32 -- gpxelinux.0
   label xx
      menu label xx
      kernel http://host/filename

Another potential use could be to use different configuration files, e.g. one with TFTP URLs, and the other with HTTP URLs, depending on whether or not gPXE extensions are present.

I am aware that most of these problems can be solved with clever DHCP configuration. However, our IT department keeps fairly tight control over the DHCP servers, and any change to the DHCP options used for a given host has a bunch of bureaucratic overhead. With ifgpxe.c32, we can simply edit the host-specific pxelinux configuration files, which IT has much less control over.

The actual content of the file was mostly copy/pasted from ifcpu64.c, so I left HPA's copyright on it.

Thanks,
Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-New-module-ifgpxe.c32.-It-runs-one-command-if-gpxe-e.patch
Type: application/octet-stream
Size: 3831 bytes
Desc: 0001-New-module-ifgpxe.c32.-It-runs-one-command-if-gpxe-e.patch
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20100913/ac390e5a/attachment.obj>


More information about the Syslinux mailing list