nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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