[install-guide/F21-rewrite] Wrap up the bootloader config section with a grub.cfg example.

Pete Travis immanetize at fedoraproject.org
Sun Sep 7 00:24:25 UTC 2014


commit ddfb20accfb33b5a6e450bb8d59c4796616e5824
Author: Pete Travis <immanetize at fedoraproject.org>
Date:   Sat Sep 6 18:15:15 2014 -0600

    Wrap up the bootloader config section with a grub.cfg example.
    
    Mostly, this was derived from
    http://download.fedoraproject.org/pub//fedora/linux/development/21/x86_64/os/EFI/BOOT/grub.cfg
    although, loading partition-related modules was left out, since we
    aren't loading from partitions.
    
    Needs testing!

 en-US/Network_based_Installations.xml |   57 +++++++++++++++++++-------------
 1 files changed, 34 insertions(+), 23 deletions(-)
---
diff --git a/en-US/Network_based_Installations.xml b/en-US/Network_based_Installations.xml
index ba30bff..d42def6 100644
--- a/en-US/Network_based_Installations.xml
+++ b/en-US/Network_based_Installations.xml
@@ -228,39 +228,50 @@ label server
 
 label rescue
   menu label ^Rescue installed system
-  kernel vmlinuz
-  append initrd=initrd.img rescue root=live:http://dl.fedoraproject.org/pub/fedora/linux/releases/&PRODVER;/Fedora/x86_64/os/LiveOS/squashfs.img rescue
+  kernel f&PRODVER;/vmlinuz
+  append initrd=f&PRODVER;initrd.img rescue ip=dhcp root=live:http://dl.fedoraproject.org/pub/fedora/linux/releases/&PRODVER;/Fedora/x86_64/os/LiveOS/squashfs.img rescue
 
 label local
   menu label Boot from ^local drive
   localboot 0xffff
                 </programlisting>
               </step>
-                
-
-
+              <step>
+                <para>
+                  Create a boot menu for UEFI clients at <filename>/var/lib/tftpboot/pxelinux/uefi</filename>.
+                </para>
+                <programlisting>
+                  function load_video {
+                    insmod efi_gop
+                    insmod efi_uga
+                    insmod video_bochs
+                    insmod video_cirrus
+                    insmod all_video
+                    }
 
+                  load_video
+                  set gfxpayload=keep
+                  insmod gzio
 
+                  menuentry 'Install &PRODUCT; 64-bit'  --class fedora --class gnu-linux --class gnu --class os {
+                    linuxefi f&PRODVER;/vmlinuz ip=dhcp inst.repo=inst.repo=http://download.fedoraproject.org/pub/fedora/linux/releases/&PRODVER;/Everything/x86_64/os/
+                    initrdefi f&PRODVER;/initrd.img
+                    }
+                    
+                  menuentry 'Install Fedora &PRODVER; Server'  --class fedora --class gnu-linux --class gnu --class os {
+                    kernel f&PRODVER;/vmlinuz
+                    append initrd=f&PRODVER;/initrd.img ip=dhcp ks=https://git.fedorahosted.org/cgit/spin-kickstarts.git/plain/fedora-install-server.ks?h=f21
+                    }
 
+                  menuentry 'Rescue installed system'  --class fedora --class gnu-linux --class gnu --class os {
+                    kernel f&PRODVER;/vmlinuz
+                    append f&PRODVER;/initrd=initrd.img rescue root=live:http://dl.fedoraproject.org/pub/fedora/linux/releases/&PRODVER;/Fedora/x86_64/os/LiveOS/squashfs.img rescue
+                    }
+                </programlisting>
+              </step>
+            </procedure>
+          </section>
 
-                   <step>
-                        <para>
-                            Add a configuration file named <filename>grub.cfg</filename> to the <filename class="directory">uefi/</filename> directory. A sample configuration file at <filename>/var/lib/tftpboot/uefi/grub.cfg</filename> might look like:
-                        </para>
-                        <programlisting>
-set timeout=1
-  menuentry '&PRODUCT;' {
-  linuxefi uefi/vmlinuz ip=dhcp inst.repo=http://10.32.5.1/mnt/archive/&PRODUCT;/&PRODVER;/Server/x86_64/os/
-  initrdefi uefi/initrd.img
-}
-                        </programlisting>
-                        <important>
-                            <para>
-                                The <option>inst.repo=</option> <application>Anaconda</application> option, shown in the example above, must always be used to specify the installation program's image as well as the installation source. Without this option, the installation program will be unable to boot. For more information about boot options for <application>Anaconda</application>, see <xref linkend="sect-boot-options-installer" />.
-                            </para>
-                        </important>
-                    </step>
-                    <step>
                         <para>
                             Copy the boot images into your <command>uefi/</command> directory:
                         </para>


More information about the docs-commits mailing list