source: chapter08/grub.xml@ cdf280e

12.1 12.1-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since cdf280e was 7152faa, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Change all xml files to utf-8 encoding

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