source: chapter06/grub.xml@ dc5577b1

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 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 8.4 9.0 9.1 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/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since dc5577b1 was dc5577b1, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Move /etc/bash_completions.d/grub to a better location.
Update to dejagnu-1.6.2.
Update to linux-4.19.6.
Update to perl-5.28.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11491 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 12.9 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[4ae4324]7
[81fd230]8<sect1 id="ch-system-grub" role="wrap">
[4ae4324]9 <?dbhtml filename="grub.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>grub</productname>
13 <productnumber>&grub-version;</productnumber>
14 <address>&grub-url;</address>
15 </sect1info>
16
[4ae4324]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/>
[673b0d8]25
[4ae4324]26 <para>The GRUB package contains the GRand Unified Bootloader.</para>
[955533b]27
[4ae4324]28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
[5888299]31
[4ae4324]32 <seglistitem>
[e4a5635]33 <seg>&grub-ch6-sbu;</seg>
34 <seg>&grub-ch6-du;</seg>
[4ae4324]35 </seglistitem>
36 </segmentedlist>
[673b0d8]37
[4ae4324]38 </sect2>
[81fd230]39
[4ae4324]40 <sect2 role="installation">
41 <title>Installation of GRUB</title>
42
43 <para>Prepare GRUB for compilation:</para>
[9dfc02f]44
[9f5aaf7]45<screen><userinput remap="configure">./configure --prefix=/usr \
[d02c56d]46 --sbindir=/sbin \
[9f5aaf7]47 --sysconfdir=/etc \
[b815cec]48 --disable-efiemu \
49 --disable-werror</userinput></screen>
[f9bcaec]50
[cff604f]51 <variablelist>
52 <title>The meaning of the new configure options:</title>
53
54 <varlistentry>
55 <term><parameter>--disable-werror</parameter></term>
56 <listitem>
57 <para>This allows the build to complete with warnings introduced
58 by more recent Flex versions.</para>
59 </listitem>
60 </varlistentry>
61
62 <varlistentry>
[c92ad8f]63 <term><parameter>--disable-efiemu</parameter></term>
[cff604f]64 <listitem>
[c92ad8f]65 <para>This option minimizes what is built by disabling a feature and
[cff604f]66 testing programs not needed for LFS.</para>
67 </listitem>
68 </varlistentry>
69
70 </variablelist>
[9dfc02f]71
[4ae4324]72 <para>Compile the package:</para>
[73aedd1d]73
[0445a3d]74<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]75
[f9bcaec]76 <para>This package does not come with a test suite.</para>
[81fd230]77
[4ae4324]78 <para>Install the package:</para>
[73aedd1d]79
[dc5577b1]80<screen><userinput remap="install">make install
81mv -v /etc/bash_completions.d/grub /usr/share/bash-completion/completions</userinput></screen>
[4ae4324]82
[2ca8941]83 <para>Using GRUB to make your LFS system bootable will be discussed in
[f9bcaec]84 <xref linkend="ch-bootable-grub"/>.</para>
[4ae4324]85
86 </sect2>
87
88 <sect2 id="contents-gRUB" role="content">
89 <title>Contents of GRUB</title>
90
91 <segmentedlist>
92 <segtitle>Installed programs</segtitle>
[f9bcaec]93 <segtitle>Installed directories</segtitle>
[4ae4324]94
95 <seglistitem>
[2ca8941]96
[040ecb6]97 <seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest,
98 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless,
99 grub-menulst2cfg, grub-mkconfig,
[94d3eee]100 grub-mkimage, grub-mklayout, grub-mknetdir,
[6d53efc]101 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
[040ecb6]102 grub-ofpathname, grub-probe, grub-reboot, grub-render-label,
103 grub-script-check,
104 grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg>
[6d53efc]105
[040ecb6]106 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, and boot/grub (when grub-install
107 is first run)</seg>
[4ae4324]108 </seglistitem>
109 </segmentedlist>
110
111 <variablelist>
112 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
113 <?dbfo list-presentation="list"?>
114 <?dbhtml list-presentation="table"?>
115
[6d53efc]116 <varlistentry id="grub-bios-setup">
117 <term><command>grub-bios-setup</command></term>
118 <listitem>
119 <para>Is a helper program for grub-install</para>
120 <indexterm zone="ch-system-grub grub-bios-setup">
121 <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
[f9bcaec]126 <varlistentry id="grub-editenv">
127 <term><command>grub-editenv</command></term>
128 <listitem>
129 <para>A tool to edit the environment block</para>
130 <indexterm zone="ch-system-grub grub-editenv">
131 <primary sortas="b-grub-editenv">grub-editenv</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
[040ecb6]136 <varlistentry id="grub-file">
137 <term><command>grub-file</command></term>
138 <listitem>
139 <para>Checks if FILE is of the specified type.</para>
140 <indexterm zone="ch-system-grub grub-file">
141 <primary sortas="b-grub-file">grub-file</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
[3119ddc]146 <varlistentry id="grub-fstest">
147 <term><command>grub-fstest</command></term>
148 <listitem>
149 <para>Tool to debug the filesystem driver</para>
150 <indexterm zone="ch-system-grub grub-fstest">
151 <primary sortas="b-grub-fstest">grub-fstest</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
[040ecb6]156 <varlistentry id="grub-glue-efi">
157 <term><command>grub-glue-efi</command></term>
158 <listitem>
159 <para>Processes ia32 and amd64 EFI images and glues them
160 according to Apple format.</para>
161 <indexterm zone="ch-system-grub grub-glue-efi">
162 <primary sortas="b-grub-glue-efi">grub-glue-efi</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
[9d42ad9]167 <varlistentry id="grub-install">
168 <term><command>grub-install</command></term>
[f9bcaec]169 <listitem>
[9d42ad9]170 <para>Install GRUB on your drive</para>
171 <indexterm zone="ch-system-grub grub-install">
172 <primary sortas="b-grub-install">grub-install</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
[3119ddc]177 <varlistentry id="grub-kbdcomp">
178 <term><command>grub-kbdcomp</command></term>
179 <listitem>
180 <para>Script that converts an xkb layout into one recognized by
181 GRUB</para>
182 <indexterm zone="ch-system-grub grub-kbdcomp">
183 <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
[040ecb6]188 <varlistentry id="grub-macbless">
189 <term><command>grub-macbless</command></term>
190 <listitem>
191 <para>Mac-style bless on HFS or HFS+ files</para>
192 <indexterm zone="ch-system-grub grub-macbless">
193 <primary sortas="b-grub-macbless">grub-macbless</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
[3119ddc]198 <varlistentry id="grub-menulst2cfg">
199 <term><command>grub-menulst2cfg</command></term>
200 <listitem>
201 <para>Converts a GRUB Legacy <filename>menu.lst</filename>
202 into a <filename>grub.cfg</filename> for use with GRUB 2</para>
203 <indexterm zone="ch-system-grub grub-menulst2cfg">
204 <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
[9d42ad9]209 <varlistentry id="grub-mkconfig">
210 <term><command>grub-mkconfig</command></term>
211 <listitem>
212 <para>Generate a grub config file</para>
213 <indexterm zone="ch-system-grub grub-mkconfig">
214 <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
[f9bcaec]215 </indexterm>
216 </listitem>
217 </varlistentry>
218
[3119ddc]219 <varlistentry id="grub-mkimage">
220 <term><command>grub-mkimage</command></term>
[f9bcaec]221 <listitem>
222 <para>Make a bootable image of GRUB</para>
[3119ddc]223 <indexterm zone="ch-system-grub grub-mkimage">
224 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
[f9bcaec]225 </indexterm>
226 </listitem>
227 </varlistentry>
228
[3119ddc]229 <varlistentry id="grub-mklayout">
230 <term><command>grub-mklayout</command></term>
[f9bcaec]231 <listitem>
[3119ddc]232 <para>Generates a GRUB keyboard layout file</para>
233 <indexterm zone="ch-system-grub grub-mklayout">
234 <primary sortas="b-grub-mklayout">grub-mklayout</primary>
[f9bcaec]235 </indexterm>
236 </listitem>
237 </varlistentry>
238
[3119ddc]239 <varlistentry id="grub-mknetdir">
240 <term><command>grub-mknetdir</command></term>
[4ae4324]241 <listitem>
[3119ddc]242 <para>Prepares a GRUB netboot directory</para>
243 <indexterm zone="ch-system-grub grub-mknetdir">
244 <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
[4ae4324]245 </indexterm>
246 </listitem>
247 </varlistentry>
248
[9d42ad9]249 <varlistentry id="grub-mkpasswd-pbkdf2">
250 <term><command>grub-mkpasswd-pbkdf2</command></term>
[4ae4324]251 <listitem>
[9d42ad9]252 <para>Generates an encrypted PBKDF2 password for use in the boot
253 menu</para>
254 <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
255 <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
[4ae4324]256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[9d42ad9]260 <varlistentry id="grub-mkrelpath">
261 <term><command>grub-mkrelpath</command></term>
[4ae4324]262 <listitem>
[9d42ad9]263 <para>Makes a system pathname relative to its root</para>
264 <indexterm zone="ch-system-grub grub-mkrelpath">
265 <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
[4ae4324]266 </indexterm>
267 </listitem>
268 </varlistentry>
269
[9d42ad9]270 <varlistentry id="grub-mkrescue">
271 <term><command>grub-mkrescue</command></term>
[8bc46a5]272 <listitem>
[501f1f24]273 <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
[9d42ad9]274 <indexterm zone="ch-system-grub grub-mkrescue">
275 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
[8bc46a5]276 </indexterm>
277 </listitem>
278 </varlistentry>
279
[6d53efc]280 <varlistentry id="grub-mkstandalone">
281 <term><command>grub-mkstandalone</command></term>
282 <listitem>
283 <para>Generates a standalone image</para>
284 <indexterm zone="ch-system-grub grub-mkstandalone">
285 <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="grub-ofpathname">
291 <term><command>grub-ofpathname</command></term>
292 <listitem>
293 <para>Is a helper program that prints the path of a GRUB device</para>
294 <indexterm zone="ch-system-grub grub-ofpathname">
295 <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
[f9bcaec]300 <varlistentry id="grub-probe">
301 <term><command>grub-probe</command></term>
[4ae4324]302 <listitem>
[f9bcaec]303 <para>Probe device information for a given path or device</para>
304 <indexterm zone="ch-system-grub grub-probe">
305 <primary sortas="b-grub-probe">grub-probe</primary>
[4ae4324]306 </indexterm>
307 </listitem>
308 </varlistentry>
309
[9d42ad9]310 <varlistentry id="grub-reboot">
311 <term><command>grub-reboot</command></term>
312 <listitem>
313 <para>Sets the default boot entry for GRUB for the next boot only</para>
314 <indexterm zone="ch-system-grub grub-reboot">
315 <primary sortas="b-grub-reboot">grub-reboot</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
[040ecb6]320 <varlistentry id="grub-render-label">
321 <term><command>grub-render-label</command></term>
322 <listitem>
323 <para>Render Apple .disk_label for Apple Macs</para>
324 <indexterm zone="ch-system-grub grub-render-label">
325 <primary sortas="b-grub-render-label">grub-render-label</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
[9d42ad9]330 <varlistentry id="grub-script-check">
331 <term><command>grub-script-check</command></term>
332 <listitem>
333 <para>Checks GRUB configuration script for syntax errors</para>
334 <indexterm zone="ch-system-grub grub-script-check">
335 <primary sortas="b-grub-script-check">grub-script-check</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="grub-set-default">
341 <term><command>grub-set-default</command></term>
342 <listitem>
343 <para>Sets the default boot entry for GRUB</para>
344 <indexterm zone="ch-system-grub grub-set-default">
345 <primary sortas="b-grub-set-default">grub-set-default</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
[6d53efc]350 <varlistentry id="grub-sparc64-setup">
351 <term><command>grub-sparc64-setup</command></term>
352 <listitem>
353 <para>Is a helper program for grub-setup</para>
354 <indexterm zone="ch-system-grub grub-sparc64-setup">
355 <primary sortas="b-grub-sparc64-setup">grub-setup</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
[040ecb6]360 <varlistentry id="grub-syslinux2cfg">
361 <term><command>grub-syslinux2cfg</command></term>
362 <listitem>
363 <para>Transform a syslinux config file into grub.cfg format</para>
364 <indexterm zone="ch-system-grub grub-syslinux2cfg">
365 <primary sortas="b-grub-syslinux2cfg">grub-syslinux2cfg</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
[4ae4324]370 </variablelist>
371
372 </sect2>
[673b0d8]373
374</sect1>
Note: See TracBrowser for help on using the repository browser.