source: chapter08/grub.xml@ 201aa93

multilib trunk xry111/arm64 xry111/clfs-ng
Last change on this file since 201aa93 was 201aa93, checked in by Xi Ruoyao <xry111@…>, 12 days ago

Move punctuation/comma into quotes for <xref>s

We are using American rule for punctuation/comma vs. quotes. We've
fixed most cases but not <xref>s.

  • Property mode set to 100644
File size: 14.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
8<sect1 id="ch-system-grub" role="wrap">
9 <?dbhtml filename="grub.html"?>
10
11 <sect1info condition="script">
12 <productname>grub</productname>
13 <productnumber>&grub-version;</productnumber>
14 <address>&grub-url;</address>
15 </sect1info>
16
17 <title>GRUB-&grub-version;</title>
18
19 <indexterm zone="ch-system-grub">
20 <primary sortas="a-Grub">GRUB</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The GRUB package contains the GRand Unified Bootloader.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
33 <seg>&grub-fin-sbu;</seg>
34 <seg>&grub-fin-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of GRUB</title>
42
43 <note>
44 <para>
45 If your system has UEFI support and you wish to boot LFS with UEFI,
46 you need to install GRUB with UEFI support (and its dependencies) by
47 following the instructions on
48 <ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS page</ulink>.
49 You may skip this package, or install this package and the BLFS
50 GRUB for UEFI package without conflict (the BLFS page provides
51 instructions for both cases).
52 </para>
53 </note>
54
55 <warning>
56 <para>Unset any environment variables which may affect the build:</para>
57
58 <screen><userinput remap='pre'>unset {C,CPP,CXX,LD}FLAGS</userinput></screen>
59
60 <para>Don't try <quote>tuning</quote> this package with custom
61 compilation flags. This package is a bootloader. The low-level
62 operations in the source code may be broken by
63 aggressive optimization.</para>
64 </warning>
65
66 <para>
67 Add a file missing from the release tarball:
68 </para>
69
70<screen><userinput remap='pre'>echo <literal>depends bli part_gpt</literal> &gt; grub-core/extra_deps.lst</userinput></screen>
71
72 <para>Prepare GRUB for compilation:</para>
73
74<screen><userinput remap="configure">./configure --prefix=/usr \
75 --sysconfdir=/etc \
76 --disable-efiemu \
77 --disable-werror</userinput></screen>
78
79 <variablelist>
80 <title>The meaning of the new configure options:</title>
81
82 <varlistentry>
83 <term><parameter>--disable-werror</parameter></term>
84 <listitem>
85 <para>This allows the build to complete with warnings introduced
86 by more recent versions of Flex.</para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry>
91 <term><parameter>--disable-efiemu</parameter></term>
92 <listitem>
93 <para>This option minimizes what is built by disabling a feature and
94 eliminating some test programs not needed for LFS.</para>
95 </listitem>
96 </varlistentry>
97
98 </variablelist>
99
100 <para>Compile the package:</para>
101
102<screen><userinput remap="make">make</userinput></screen>
103
104 <para>The test suite for this packages is not recommended. Most of
105 the tests depend on packages that are not available in the limited
106 LFS environment. To run the tests anyway, run <command>make check</command>.</para>
107
108 <para>Install the package:</para>
109
110<screen><userinput remap="install">make install
111mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions</userinput></screen>
112
113 <para>Making your LFS system bootable with GRUB will be discussed in
114 <xref linkend="ch-bootable-grub" role='.'/></para>
115
116 </sect2>
117
118 <sect2 id="contents-gRUB" role="content">
119 <title>Contents of GRUB</title>
120
121 <segmentedlist>
122 <segtitle>Installed programs</segtitle>
123 <segtitle>Installed directories</segtitle>
124
125 <seglistitem>
126
127 <seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest,
128 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless,
129 grub-menulst2cfg, grub-mkconfig,
130 grub-mkimage, grub-mklayout, grub-mknetdir,
131 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
132 grub-ofpathname, grub-probe, grub-reboot, grub-render-label,
133 grub-script-check,
134 grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg>
135
136 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, and /boot/grub (when grub-install
137 is first run)</seg>
138 </seglistitem>
139 </segmentedlist>
140
141 <variablelist>
142 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
143 <?dbfo list-presentation="list"?>
144 <?dbhtml list-presentation="table"?>
145
146 <varlistentry id="grub-bios-setup">
147 <term><command>grub-bios-setup</command></term>
148 <listitem>
149 <para>Is a helper program for <command>grub-install</command></para>
150 <indexterm zone="ch-system-grub grub-bios-setup">
151 <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="grub-editenv">
157 <term><command>grub-editenv</command></term>
158 <listitem>
159 <para>Is a tool to edit the environment block</para>
160 <indexterm zone="ch-system-grub grub-editenv">
161 <primary sortas="b-grub-editenv">grub-editenv</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="grub-file">
167 <term><command>grub-file</command></term>
168 <listitem>
169 <para>Checks to see if the given file is of the specified type</para>
170 <indexterm zone="ch-system-grub grub-file">
171 <primary sortas="b-grub-file">grub-file</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="grub-fstest">
177 <term><command>grub-fstest</command></term>
178 <listitem>
179 <para>Is a tool to debug the filesystem driver</para>
180 <indexterm zone="ch-system-grub grub-fstest">
181 <primary sortas="b-grub-fstest">grub-fstest</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="grub-glue-efi">
187 <term><command>grub-glue-efi</command></term>
188 <listitem>
189 <para>Glues 32-bit and 64-bit binaries into a single file (for Apple machines)</para>
190 <indexterm zone="ch-system-grub grub-glue-efi">
191 <primary sortas="b-grub-glue-efi">grub-glue-efi</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="grub-install">
197 <term><command>grub-install</command></term>
198 <listitem>
199 <para>Installs GRUB on your drive</para>
200 <indexterm zone="ch-system-grub grub-install">
201 <primary sortas="b-grub-install">grub-install</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="grub-kbdcomp">
207 <term><command>grub-kbdcomp</command></term>
208 <listitem>
209 <para>Is a script that converts an xkb layout into one recognized by
210 GRUB</para>
211 <indexterm zone="ch-system-grub grub-kbdcomp">
212 <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="grub-macbless">
218 <term><command>grub-macbless</command></term>
219 <listitem>
220 <para>Is the Mac-style bless for HFS or HFS+ file systems (<command>bless</command>
221 is peculiar to Apple machines; it makes a device bootable)</para>
222 <indexterm zone="ch-system-grub grub-macbless">
223 <primary sortas="b-grub-macbless">grub-macbless</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="grub-menulst2cfg">
229 <term><command>grub-menulst2cfg</command></term>
230 <listitem>
231 <para>Converts a GRUB Legacy <filename>menu.lst</filename>
232 into a <filename>grub.cfg</filename> for use with GRUB 2</para>
233 <indexterm zone="ch-system-grub grub-menulst2cfg">
234 <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="grub-mkconfig">
240 <term><command>grub-mkconfig</command></term>
241 <listitem>
242 <para>Generates a <filename>grub.cfg</filename> file</para>
243 <indexterm zone="ch-system-grub grub-mkconfig">
244 <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="grub-mkimage">
250 <term><command>grub-mkimage</command></term>
251 <listitem>
252 <para>Makes a bootable image of GRUB</para>
253 <indexterm zone="ch-system-grub grub-mkimage">
254 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="grub-mklayout">
260 <term><command>grub-mklayout</command></term>
261 <listitem>
262 <para>Generates a GRUB keyboard layout file</para>
263 <indexterm zone="ch-system-grub grub-mklayout">
264 <primary sortas="b-grub-mklayout">grub-mklayout</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="grub-mknetdir">
270 <term><command>grub-mknetdir</command></term>
271 <listitem>
272 <para>Prepares a GRUB netboot directory</para>
273 <indexterm zone="ch-system-grub grub-mknetdir">
274 <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="grub-mkpasswd-pbkdf2">
280 <term><command>grub-mkpasswd-pbkdf2</command></term>
281 <listitem>
282 <para>Generates an encrypted PBKDF2 password for use in the boot
283 menu</para>
284 <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
285 <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="grub-mkrelpath">
291 <term><command>grub-mkrelpath</command></term>
292 <listitem>
293 <para>Makes a system pathname relative to its root</para>
294 <indexterm zone="ch-system-grub grub-mkrelpath">
295 <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="grub-mkrescue">
301 <term><command>grub-mkrescue</command></term>
302 <listitem>
303 <para>Makes a bootable image of GRUB suitable for a floppy disk,
304 CDROM/DVD, or a USB drive</para>
305 <indexterm zone="ch-system-grub grub-mkrescue">
306 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="grub-mkstandalone">
312 <term><command>grub-mkstandalone</command></term>
313 <listitem>
314 <para>Generates a standalone image</para>
315 <indexterm zone="ch-system-grub grub-mkstandalone">
316 <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="grub-ofpathname">
322 <term><command>grub-ofpathname</command></term>
323 <listitem>
324 <para>Is a helper program that prints the path to a GRUB device</para>
325 <indexterm zone="ch-system-grub grub-ofpathname">
326 <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="grub-probe">
332 <term><command>grub-probe</command></term>
333 <listitem>
334 <para>Probes device information for a given path or device</para>
335 <indexterm zone="ch-system-grub grub-probe">
336 <primary sortas="b-grub-probe">grub-probe</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="grub-reboot">
342 <term><command>grub-reboot</command></term>
343 <listitem>
344 <para>Sets the default boot entry for GRUB for the next boot only</para>
345 <indexterm zone="ch-system-grub grub-reboot">
346 <primary sortas="b-grub-reboot">grub-reboot</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="grub-render-label">
352 <term><command>grub-render-label</command></term>
353 <listitem>
354 <para>Renders Apple .disk_label for Apple Macs</para>
355 <indexterm zone="ch-system-grub grub-render-label">
356 <primary sortas="b-grub-render-label">grub-render-label</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="grub-script-check">
362 <term><command>grub-script-check</command></term>
363 <listitem>
364 <para>Checks the GRUB configuration script for syntax errors</para>
365 <indexterm zone="ch-system-grub grub-script-check">
366 <primary sortas="b-grub-script-check">grub-script-check</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="grub-set-default">
372 <term><command>grub-set-default</command></term>
373 <listitem>
374 <para>Sets the default boot entry for GRUB</para>
375 <indexterm zone="ch-system-grub grub-set-default">
376 <primary sortas="b-grub-set-default">grub-set-default</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="grub-sparc64-setup">
382 <term><command>grub-sparc64-setup</command></term>
383 <listitem>
384 <para>Is a helper program for grub-setup</para>
385 <indexterm zone="ch-system-grub grub-sparc64-setup">
386 <primary sortas="b-grub-sparc64-setup">grub-setup</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="grub-syslinux2cfg">
392 <term><command>grub-syslinux2cfg</command></term>
393 <listitem>
394 <para>Transforms a syslinux config file into grub.cfg format</para>
395 <indexterm zone="ch-system-grub grub-syslinux2cfg">
396 <primary sortas="b-grub-syslinux2cfg">grub-syslinux2cfg</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 </variablelist>
402
403 </sect2>
404
405</sect1>
Note: See TracBrowser for help on using the repository browser.