source: chapter08/grub.xml@ 35ad663

11.0 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 35ad663 was 35ad663, checked in by Xi Ruoyao <xry111@…>, 3 years ago

grub: remove --sbindir (merged /usr)

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