[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3] Search for specific config files using UUID, MAC and IP
From: |
Javier Martinez Canillas |
Subject: |
[PATCH 0/3] Search for specific config files using UUID, MAC and IP |
Date: |
Sat, 5 Oct 2019 00:44:24 +0200 |
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
- [PATCH 0/3] Search for specific config files using UUID, MAC and IP,
Javier Martinez Canillas <=