[syslinux] TFTP prefix in pxelinux.0 ?

Jeffrey Hutzelman jhutz at cmu.edu
Fri Nov 6 12:26:13 PST 2009


--On Wednesday, October 14, 2009 10:03:35 AM +0200 Frank Lin PIAT 
<fpiat at klabs.be> wrote:

> Hello,
>
> I wonder if it is possible to change pxelinux.0's tftp prefix...
>
>
> I want to setup a repository like that:
>
>| -- dist1
>|   | -- pxelinux.cfg
>|   |   `-- default
>|   `-- pxelinux.0
>| -- dist2
>|   | -- pxelinux.cfg
>|   |   `-- default
>|   `-- pxelinux.0
>| -- pxelinux.cfg
>|   | -- default
>|   `-- menu.c32
> `-- pxelinux.0
>
> The file /pxelinux.cfg/default would contain something like that:
>> LABEL dist1
>>        MENU LABEL dist1
>>        KERNEL dist1/pxelinux.0
>> LABEL dist2
>>        MENU LABEL dist2
>>        KERNEL dist1/pxelinux.0
>
> Then I want to either be able to get the DHCP to point to
>   /pxelinux.0  (which sets tftp prefix to "/")
> or to point directly to a given distribution:
>   /dist1/pxelinux.0  (which sets tftp prefix to "/dist1")
>
> The problem, is that that the path in dist1/pxelinux.cfg/default
> are relative to the tftp prefix (which is set by the first pxelinux.0
> instance)
>
> Do you know how I can achieve this ?
>
> Please CC me, as I am not subscribed to the list,

This is exactly what pxechain.com (in the modules directory) was designed 
for.  Use configuration like:

LABEL dist1
  MENU LABEL dist1
  KERNEL pxechain.com
  APPEND dist1/pxelinux.0

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+ at cmu.edu>
   Carnegie Mellon University - Pittsburgh, PA




More information about the Syslinux mailing list