Blame SOURCES/0155-Update-info-with-grub.cfg-netboot-selection-order-11.patch

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