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

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