nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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