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. Thanks!
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. -hpa
On Fri, 9 Jul 2010, H. Peter Anvin 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?...>> 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.Thanks! I added this to the SYSLINUX page of the wiki.
Good day Warren, In regards to your question concerning a constant prefix which is prepended to filenames in your PXELINUX config-file: Are you familiar with DHCP options 209 and 210? As documented in syslinux/doc/rfc5071.txt, you could potentially make good use of these. If you set 210 to: http://webserver/ Then any relative file paths found in any config-files will be fetched via that prefix. It should be clear that you are using gPXE, since your example was expecting to use HTTP. In that case, you can set DHCP options from a gPXE script or from its CLI. Simply search the Internet for "gpxe option 210". - Shao Miller
Hallo, H. Peter, Du meintest am 09.07.10:>> 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.That sounds very good. Long lines have errors in the part not shown on the display. Always ... Viele Gruesse! Helmut