[syslinux] constants and line continuation

Jim Cromie jim.cromie at gmail.com
Tue Jul 13 00:22:25 PDT 2010


On Fri, Jul 9, 2010 at 3:22 PM, H. Peter Anvin <hpa at zytor.com> wrote:
> On 07/09/2010 12:40 PM, Warren Block wrote:
>> If these are FAQ entries, sorry, I searched but did not find.
>> Maybe the wrong terms.
>>
>> Is there a way to define a constant value in a pxelinux.cfg/default
>> file?
>>
>>    httphost=192.168.1.1
>>    ...
>>    append fetch=http://${httphost}/...
>>
>>
>> Line continuations: it would be slick if multiple append statements
>> could be used in a single menu entry, breaking up those four-screen-wide
>> lines.  Tried that, and backslashes, but no.
>>
>
> Not supported in the current version, sorry, but it will happen eventually.
>

is this a good application for lua ?

if lua is 'ready' when the config is requested and downloaded,
the file could contain lua code that is run to produce all the
menus, kernels, append-lines etc.

Or is lua a module that must be called in by the config ?
Even if it is, it might be possible to do so in the top of the
file, then feed the bottom of the file into lua as a script,
somewhat like a foo.bin.sh file that Sun seems to favor
for sh-driven install files.

Could you outline something that makes sense to you for this ?
If it makes sense :-)




More information about the Syslinux mailing list