[syslinux] is substitution possible?

H. Peter Anvin hpa at zytor.com
Mon Mar 5 17:42:10 PST 2007


Wagner Ferenc wrote:
> 
> To be honest, I barely understand a word, but I feel like we're
> talking about different things...
> 
> First of all, I don't know the details of PXE.  What sort of
> information does pxelinux have access to?  Can it see the DHCP lease?
> According to the FAQ, some options can be passed in.  But I wouldn't
> like to change the configuration file name based on the lease, but
> just do some simple text substitution.  So: pxelinux gets its config
> file by TFTP as usual.  Then, wherever it sees $NAME, substitutes the
> host name found in the lease into its place.  Or runs it through the
> Perl script presented as some obscure DHCP option, pardon me. :)
> Then it parses the preprocessed config file and goes on.
> 
> Maybe I don't see something obvious, but it doesn't seem connected to
> the TFTP protocol or its tsize option...

I really don't want to do this in PXELINUX itself, which is mostly 
written in assembly.

My point was that this can be done server-side as well.

	-hpa




More information about the Syslinux mailing list