]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Make "netX" settings block function as a symbolic link
authorMichael Brown <mcb30@ipxe.org>
Sat, 13 Jul 2013 13:06:20 +0000 (15:06 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sat, 13 Jul 2013 13:11:45 +0000 (15:11 +0200)
commit66ea4581256449fe9dcb26340851c09ffd9d6290
tree89144d4ecd20220f55328cd9d267d27dc4495465
parentdbfa13ff2cd7eb313d002f185f0274f2ac883231
[settings] Make "netX" settings block function as a symbolic link

Add a facility for settings blocks to act as symbolic links to other
settings blocks, and reimplement the "netX" virtual settings block
using this facility.

The primary advantage of this approach is that unscoped settings such
as ${mac} and ${filename} will now reflect the settings obtained from
the most recently opened network device: in most cases, this will mean
the settings obtained from the most recent DHCP attempt.  This should
improve conformance to the principle of least astonishment.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c
src/hci/tui/settings_ui.c
src/include/ipxe/settings.h
src/net/netdev_settings.c