source: postlfs/filesystems/uefi-bootloaders/grub-efi.xml@ 45ab6c7

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
7 <!ENTITY grub-efi-download-http "https://alpha.gnu.org/gnu/grub/grub-&grub-version;.tar.xz">
8 <!ENTITY grub-efi-download-ftp " ">
9 <!ENTITY grub-efi-md5sum "3c222b51347c182d655f9b94d5b56582">
10 <!ENTITY grub-efi-size "6.2 MB">
11 <!ENTITY grub-efi-buildsize "592 KB">
12 <!ENTITY grub-efi-time "0.9 SBU">
13
14 <!ENTITY unifont-download-http "https://unifoundry.com/pub/unifont/unifont-&unifont-version;/font-builds/unifont-&unifont-version;.pcf.gz">
15 <!ENTITY unifont-md5sum "4fbc33c8d8d25985f1bcdd4d28bc2420">
16 <!ENTITY unifont-size "1.3 MB">
17]>
18
19<sect1 id="grub-efi" xreflabel="GRUB-&grub-version; for EFI">
20 <?dbhtml filename="grub-efi.html"?>
21
22 <sect1info>
23 <date>$Date: 2021-02-21 03:35:58 +0800 (日, 2021-02-21) $</date>
24 </sect1info>
25
26 <title>GRUB-&grub-version; for EFI</title>
27
28 <indexterm zone="grub-efi">
29 <primary sortas="a-grub-efi">grub-efi</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to GRUB</title>
34
35 <para>
36 The <application>GRUB</application> package provides GRand Unified
37 Bootloader. In this page it will be built with UEFI support, which
38 is not enabled for GRUB built in LFS.
39 </para>
40
41 &lfs101_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&grub-efi-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&grub-efi-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &grub-efi-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &grub-efi-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &grub-efi-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &grub-efi-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
78
79 <itemizedlist spacing="compact">
80 <title>Unicode font data used to display GRUB menu</title>
81 <listitem>
82 <para>
83 Download (HTTP): <ulink url="&unifont-download-http;"/>
84 </para>
85 </listitem>
86 <listitem>
87 <para>
88 Download MD5 sum: &unifont-md5sum;
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Download size: &unifont-size;
94 </para>
95 </listitem>
96 </itemizedlist>
97
98 <bridgehead renderas="sect3">GRUB Dependencies</bridgehead>
99
100 <bridgehead renderas="sect4">Required (runtime)</bridgehead>
101 <para role="runtime">
102 <xref linkend="efibootmgr"/>
103 </para>
104
105 <bridgehead renderas="sect4">Recommended</bridgehead>
106 <para role="recommended">
107 <xref linkend="freetype2"/>
108 </para>
109
110 <bridgehead renderas="sect4">Optional</bridgehead>
111 <para role="optional">
112 <xref linkend="lvm2"/>
113 </para>
114
115 <para condition="html" role="usernotes">User Notes:
116 <ulink url="&blfs-wiki;/grub-efi"/></para>
117
118 </sect2>
119
120 <sect2 role="installation">
121 <title>Installation of GRUB</title>
122
123 <para>
124 First, install font data as the
125 <systemitem class="username">root</systemitem> user:
126 </para>
127
128<screen role="root"><userinput>mkdir -pv /usr/share/fonts/unifont &amp;&amp;
129gunzip -c unifont-&unifont-version;.pcf.gz > /usr/share/fonts/unifont/unifont.pcf</userinput></screen>
130
131 <warning>
132 <para>Unset any environment variables which may affect the build:</para>
133
134 <screen><userinput>unset {C,CPP,CXX,LD}FLAGS</userinput></screen>
135
136 <para>Don't try <quote>tuning</quote> this package with custom
137 compilation flags: this package is a bootloader, with low-level
138 operations in the source code which is likely to be broken by some
139 aggressive optimizations.</para>
140 </warning>
141
142 <para>
143 Build <application>GRUB</application> with the following commands:
144 </para>
145
146<screen><userinput>./configure --prefix=/usr \
147 --sbindir=/sbin \
148 --sysconfdir=/etc \
149 --disable-efiemu \
150 --enable-grub-mkfont \
151 --with-platform=efi \
152 --disable-werror &amp;&amp;
153make</userinput></screen>
154
155 <para>
156 This package does not have a test suite providing meaningful results.
157 </para>
158
159 <para>
160 Now, as the <systemitem class="username">root</systemitem> user:
161 </para>
162
163<screen role="root"><userinput>make install &amp;&amp;
164mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions</userinput></screen>
165
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
171 <para>
172 <parameter>--enable-grub-mkfont</parameter>: Build the tool named
173 <command>grub-mkfont</command> to generate the font file for the boot
174 loader from the font data we've installed.
175 </para>
176
177 <warning>
178 <para>If the recommended dependency <xref linkend="freetype2"/> is not
179 installed, it is possible to omit this option and build GRUB. However,
180 if <command>grub-mkfont</command> is not built, or the unicode font
181 data is not avaliable at the time GRUB is built, GRUB won't install
182 any font for the boot loader. The GRUB boot menu will be displayed
183 using a coarse font and the early stage of kernel initialization will be
184 in <quote>blind mode</quote> &mdash; you can't see any kernel messages before
185 the graphics card driver is initialized. It will be very difficult to
186 diagnose some boot issues, especially if the graphics driver is
187 built as module.</para>
188 </warning>
189
190 <para>
191 <parameter>--with-platform=efi</parameter>: Ensures building GRUB with
192 EFI enabled.
193 </para>
194
195 </sect2>
196
197 <sect2>
198 <title>Configuring GRUB</title>
199
200 <para>
201 Using GRUB to make the LFS system bootable on UEFI platform will be
202 discussed in <xref linkend="grub-setup"/>.
203 </para>
204 </sect2>
205
206 <sect2 role="content">
207 <title>Contents</title>
208
209 <para>See the page for GRUB in LFS book.</para>
210 </sect2>
211
212</sect1>
Note: See TracBrowser for help on using the repository browser.