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

Christian Hesse list at eworm.de
Tue Apr 3 15:25:38 UTC 2012


Michael Brown <mbrown at fensystems.co.uk> on Tue, 2012/04/03 15:42:
> 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

Great, that works like a charm. Was looking for something like that but
missed it. Thanks a lot!
-- 
Best regards,
Chris
                         O< ascii ribbon campaign
                   stop html mail - www.asciiribbon.org



More information about the ipxe-devel mailing list