[ipxe-devel] ${mac} in relative URI

Michael Brown mbrown at fensystems.co.uk
Tue Apr 3 14:42:31 UTC 2012


On Tuesday 03 Apr 2012 15:26:14 Christian Hesse wrote:
> Hello everybody,
> 
> I think I found a case in URI parsing that fails... Trying to chain a
> script based on mac address does not work for me.
> 
> mac/${mac}.ipxe evaluates to something like mac/00:11:22:33:44:55.ipxe.
> ipxe tries to handle the absulute uri with opaque part... Obviously this
> fails. ;)
> 
> So the problem is in core/uri.c I support, beginning in line 103. Will look
> at that later if nobody has a solution then.

You can use ${mac:hexhyp} :

  http://ipxe.org/cfg/mac#notes

Michael



More information about the ipxe-devel mailing list