6b2dd0
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f4c76c
From: Robert Marshall <rmarshall@redhat.com>
f4c76c
Date: Mon, 16 Mar 2015 16:34:51 -0400
752ceb
Subject: [PATCH] Update info with grub.cfg netboot selection order (#1148650)
f4c76c
f4c76c
Added documentation to the grub info page that specifies the order
f4c76c
netboot clients will use to select a grub configuration file.
f4c76c
f4c76c
Resolves rhbz#1148650
f4c76c
---
f4c76c
 docs/grub.texi | 42 ++++++++++++++++++++++++++++++++++++++++++
f4c76c
 1 file changed, 42 insertions(+)
f4c76c
f4c76c
diff --git a/docs/grub.texi b/docs/grub.texi
752ceb
index 2fd32608c01..a7155c22ffe 100644
f4c76c
--- a/docs/grub.texi
f4c76c
+++ b/docs/grub.texi
752ceb
@@ -2493,6 +2493,48 @@ grub-mknetdir --net-directory=/srv/tftp --subdir=/boot/grub -d /usr/lib/grub/i38
f4c76c
 Then follow instructions printed out by grub-mknetdir on configuring your DHCP
f4c76c
 server.
f4c76c
 
f4c76c
+The grub.cfg file is placed in the same directory as the path output by
f4c76c
+grub-mknetdir hereafter referred to as FWPATH. GRUB will search for its 
f4c76c
+configuration files in order using the following rules where the appended
f4c76c
+value corresponds to a value on the client machine.
f4c76c
+
f4c76c
+@example
f4c76c
+@group
f4c76c
+@samp{(FWPATH)}/grub.cfg-@samp{(UUID OF NIC)}
f4c76c
+@samp{(FWPATH)}/grub.cfg-@samp{(MAC ADDRESS OF NIC)}
f4c76c
+@samp{(FWPATH)}/grub.cfg-@samp{(IPv4 OR IPv6 ADDRESS)}
f4c76c
+@samp{(FWPATH)}/grub.cfg
f4c76c
+@end group
f4c76c
+@end example
f4c76c
+
f4c76c
+The client will only attempt to look up an IPv6 address config once, however,
f4c76c
+it will try the IPv4 multiple times. The concrete example below shows what
f4c76c
+would happen under the IPv4 case.
f4c76c
+
f4c76c
+@example
f4c76c
+@group
f4c76c
+UUID: 7726a678-7fc0-4853-a4f6-c85ac36a120a
f4c76c
+MAC:  52:54:00:ec:33:81
f4c76c
+IPV4: 10.0.0.130 (0A000082)
f4c76c
+@end group
f4c76c
+@end example
f4c76c
+
f4c76c
+@example
f4c76c
+@group
f4c76c
+@samp{(FWPATH)}/grub.cfg-7726a678-7fc0-4853-a4f6-c85ac36a120a
f4c76c
+@samp{(FWPATH)}/grub.cfg-52-54-00-ec-33-81
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A000082
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A00008
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A0000
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A000
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A00
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A0
f4c76c
+@samp{(FWPATH)}/grub.cfg-0A
f4c76c
+@samp{(FWPATH)}/grub.cfg-0
f4c76c
+@samp{(FWPATH)}/grub.cfg
f4c76c
+@end group
f4c76c
+@end example
f4c76c
+
f4c76c
 After GRUB has started, files on the TFTP server will be accessible via the
f4c76c
 @samp{(tftp)} device.
f4c76c