[ipxe-devel] [PATCH 3/3] Set correct 'origin' field in iBFT structure
Michael Brown
mbrown at fensystems.co.uk
Thu Jun 12 16:17:40 UTC 2014
On 02/06/14 17:00, Michael Brown wrote:
> Setting a manual IP address will override the DHCP-provided IP address,
> but won't remove the DHCP settings block.
>
> We can use fetch_setting() to determine the settings block from which
> the setting is taken. The best approach might therefore be to use
> "manual" if the IP address setting comes from the "net0" block itself,
> or "DHCP" otherwise. It won't be perfect, but it's probably a
> reasonable heuristic.
I've implemented this heuristic:
http://git.ipxe.org/ipxe.git/commitdiff/d5cf058
Please let me know if it causes any issues for you.
Michael
More information about the ipxe-devel
mailing list