source: chapter06/grub.xml@ c92ad8f

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 7.10 8.0 8.0-rc1 8.1 8.1-rc1 8.1-rc2 8.2 8.2-rc1 8.3 8.3-rc1 8.3-rc2 8.4 8.4-rc1 9.0 9.0-rc1 9.1 9.1-rc1 cross-chap5 ml-11.0 multilib nosym old-trunk trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since c92ad8f was c92ad8f, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Minor option fix for grub

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

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