normal/main: Search for specific config files for netboot
This patch implements a search for a specific configuration when the config file is on a remoteserver. It uses the following order: 1) DHCP client UUID option. 2) MAC address (in lower case hexadecimal with dash separators); 3) IP (in upper case hexadecimal) or IPv6; 4) The original grub.cfg file. This procedure is similar to what is used by pxelinux and yaboot: http://www.syslinux.org/wiki/index.php/PXELINUX#config It is enabled by default but can be disabled by setting the environment variable "feature_net_search_cfg" to "n" in an embedded configuration. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=873406 Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
febc761e67
commit
cb2f15c544
3 changed files with 155 additions and 4 deletions
|
@ -569,6 +569,8 @@ grub_net_add_dns_server (const struct grub_net_network_level_address *s);
|
|||
void
|
||||
grub_net_remove_dns_server (const struct grub_net_network_level_address *s);
|
||||
|
||||
grub_err_t
|
||||
grub_net_search_config_file (char *config);
|
||||
|
||||
extern char *grub_net_default_server;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue