[Top][All Lists]

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

[PATCH v5 5/5] docs: Update info with grub.cfg netboot selection order

From: Javier Martinez Canillas
Subject: [PATCH v5 5/5] docs: Update info with grub.cfg netboot selection order
Date: Tue, 29 Oct 2019 15:16:12 +0100

From: Robert Marshall <address@hidden>

Add documentation to the grub info page that specifies the order
netboot clients use to select a grub configuration file.

Signed-off-by: Robert Marshall <address@hidden>
Signed-off-by: Javier Martinez Canillas <address@hidden>


Changes in v5:
- Add Reviewed-by tag from Daniel Kiper to patch #5.

Changes in v4:
- 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 a patch documenting the grub.cfg netboot selection order.

Changes in v2: None

 docs/grub.texi | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git docs/grub.texi docs/grub.texi
index 5ac61c09d1b..2f69c47175e 100644
--- docs/grub.texi
+++ docs/grub.texi
@@ -2486,6 +2486,52 @@ grub-mknetdir --net-directory=/srv/tftp 
--subdir=/boot/grub -d /usr/lib/grub/i38
 Then follow instructions printed out by grub-mknetdir on configuring your DHCP
+The grub.cfg file is placed in the same directory as the path output by
+grub-mknetdir hereafter referred to as FWPATH. GRUB will search for its
+configuration files in order using the following rules where the appended
+value corresponds to a value on the client machine.
+@samp{(FWPATH)}/grub.cfg-@samp{(UUID OF MACHINE)}
+@samp{(FWPATH)}/grub.cfg-@samp{(MAC ADDRESS OF NIC)}
+@samp{(FWPATH)}/grub.cfg-@samp{(IPv4 OR IPv6 ADDRESS)}
+@end group
+@end example
+The UUID is the Client Machine Identifier Option Definition as specified in
+RFC 4578. The client will only attempt to loouk up a UUID config file if it
+was provided by the DHCP server.
+The client will only attempt to look up an IPv6 address config once, however,
+it will try the IPv4 multiple times. The concrete example below shows what
+would happen under the IPv4 case.
+UUID: 7726a678-7fc0-4853-a4f6-c85ac36a120a
+MAC:  52:54:00:ec:33:81
+IPV4: (0A000082)
+@end group
+@end example
+@end group
+@end example
 After GRUB has started, files on the TFTP server will be accessible via the
 @samp{(tftp)} device.

reply via email to

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