[ipxe-devel] Patch: Add ${mac/hexnone} settings type

Michael Brown mbrown at fensystems.co.uk
Wed Sep 26 14:55:16 UTC 2012


On 25/09/12 15:16, Jeppe Toustrup wrote:
> I am working on using iPXE for a PXE boot setup, where we would like
> to generate iPXE configurations dynamically based on the MAC address
> of the machine which is booting. Since our existing system uses MAC
> addresses without delimiters, it would be easier for us if iPXE had
> that in a parameter, but currently it only has the option of the MAC
> address with either a colon (':') or hyphen ('-') as delimiter. I
> could of course just strip one of those in our systems, but since
> there already are two options, I thought it couldn't be that hard to
> add a third one, which may be handy for other people as well. So I
> have made a patch which adds ${mac/hexnone} which contains the MAC
> address without any delimiters:
> http://files.tenzer.dk/misc/hexnone.patch
>
> I have basically searched the source code for 'hexhyp' and duplicated
> the work done to implement that, only without a delimiter.
> Is this something that could be added to the iPXE source tree?
> Do you possibly want another name for the setting type than 'hexnone'?

I'm happy to add this feature, but it currently fails its own 
self-tests.  Try:

     make bin-x86_64-linux/tests.linux && ./bin-x86_64-linux/tests.linux

Michael



More information about the ipxe-devel mailing list