All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Search for specific config files using UUID, MAC and IP
@ 2019-10-04 22:44 Javier Martinez Canillas
  2019-10-04 22:44 ` [PATCH 1/3] Set net_<interface>_client{id, uuid} variables from DHCP options Javier Martinez Canillas
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Javier Martinez Canillas @ 2019-10-04 22:44 UTC (permalink / raw)
  To: grub-devel
  Cc: Vladimir Serbinenko, Daniel Kiper, Paulo Flabiano Smorigo,
	Javier Martinez Canillas

Hello,

This series contains some patches that have been carried in Fedora (and
other distros) for a long time. It allows to fetch GRUB configurations
that are customized for each machine by using the client UUID, MAC and
IP addresses as suffixes for the grub.cfg file.

This procedure is similar to what is used by pxelinux and yaboot:
http://www.syslinux.org/wiki/index.php/PXELINUX#config

Patch #1 sets net_<interface>_client{id,uuid} environment variables by
using the DHCP client ID and UUID options if these are found.

Patch #2 adds a %X format specifier to make the grub_printf() function
more similar to printf() and not require to use %x plus grub_toupper().

Finally Patch #3 adds the support to fetch the config files using the
UUID, MAC and IP as suffixes. If these aren't found, the default GRUB
config filename is used as a fallback.

Best regards,
Javier


Paulo Flabiano Smorigo (3):
  Set net_<interface>_client{id,uuid} variables from DHCP options
  Add %X option to printf functions
  Search for specific config files for netboot

 grub-core/kern/misc.c   |   7 ++-
 grub-core/net/bootp.c   |  85 ++++++++++++++++++++++++++---
 grub-core/net/net.c     | 117 ++++++++++++++++++++++++++++++++++++++++
 grub-core/normal/main.c |  17 ++++--
 include/grub/net.h      |   5 ++
 5 files changed, 217 insertions(+), 14 deletions(-)

-- 
2.21.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-10-18  8:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04 22:44 [PATCH 0/3] Search for specific config files using UUID, MAC and IP Javier Martinez Canillas
2019-10-04 22:44 ` [PATCH 1/3] Set net_<interface>_client{id, uuid} variables from DHCP options Javier Martinez Canillas
2019-10-15 14:19   ` Daniel Kiper
2019-10-18  7:46     ` Javier Martinez Canillas
2019-10-04 22:44 ` [PATCH 2/3] Add %X option to printf functions Javier Martinez Canillas
2019-10-05  1:47   ` Steve McIntyre
2019-10-05  7:15     ` Javier Martinez Canillas
2019-10-15 14:26     ` Daniel Kiper
2019-10-15 14:24   ` Daniel Kiper
2019-10-04 22:44 ` [PATCH 3/3] Search for specific config files for netboot Javier Martinez Canillas
2019-10-15 14:35   ` Daniel Kiper
2019-10-15 14:37 ` [PATCH 0/3] Search for specific config files using UUID, MAC and IP Daniel Kiper
2019-10-18  8:00   ` Javier Martinez Canillas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.