dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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