]> git.ipfire.org Git - thirdparty/grub.git/commit
normal/main: Search for specific config files for netboot
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Wed, 22 Jan 2020 11:01:55 +0000 (12:01 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Feb 2020 14:12:06 +0000 (15:12 +0100)
commitcb2f15c544895e1f3d540dd39d36c4611bdf5b7b
treec3e8e7ce53356588a3ab5e9cdd290663e6b1fcaf
parentfebc761e678079345122f85b9a686d0e32a3b37f
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>
grub-core/net/net.c
grub-core/normal/main.c
include/grub/net.h