[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 0/5] Search for specific config files using UUID, MAC and IP

From: Javier Martinez Canillas
Subject: [PATCH v4 0/5] Search for specific config files using UUID, MAC and IP
Date: Wed, 23 Oct 2019 15:00:28 +0200


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

The procedure is similar to what is used by pxelinux and yaboot, i.e:

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

Patch #2 is just a cleanup of the bootp/dhcp options enum to consistently use
hexadecimal numbers for all the values.

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

Patch #4 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.

Patch #5 adds documentation that specifies the order netboot clients use to
select a grub configuration file.

Best regards,

Changes in v4:
- Use decimal instead of hexadecimal numbers to be consistent with RFC 2132.
- Mention that the UUID is unique to the machine and not the NIC and also
  refer to the RFC 4578 where the client UUID DHCP option is specified.

Changes in v3:
- Add patch to cleanup bootp/dhcp options enum.
- Use decimal numbers for the newly added DHCP client ID and UUID options.
- Add Reviewed-by tag from Daniel Kiper.
- Add a patch documenting the grub.cfg netboot selection order.

Changes in v2:
- Put patch that adds the %X format specifier first in the series.
- Use the existing grub_env_set_net_property() and remove duplicated code.

Javier Martinez Canillas (1):
  net/dhcp: Consistently use decimal numbers for DHCP/BOOTP options enum

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

Robert Marshall (1):
  docs: Update info with grub.cfg netboot selection order

 docs/grub.texi          |  46 ++++++++++++++++
 grub-core/kern/misc.c   |   7 ++-
 grub-core/net/bootp.c   |  48 ++++++++++++++---
 grub-core/net/net.c     | 117 ++++++++++++++++++++++++++++++++++++++++
 grub-core/normal/main.c |  17 ++++--
 include/grub/net.h      |  24 +++++----
 6 files changed, 236 insertions(+), 23 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]