source: chapter06/grub.xml@ 292f3c2

Last change on this file since 292f3c2 was 0f6cefb, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

lfs-7.10-rc1

git-svn-id: http://svn.linuxfromscratch.org/LFS/tags/7.10-rc1@11112 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>
[0f6cefb]63 <term><parameter>--disable-efiemu</parameter></term>
[cff604f]64 <listitem>
[0f6cefb]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
[f9bcaec]80<screen><userinput remap="install">make install</userinput></screen>
[4ae4324]81
[2ca8941]82 <para>Using GRUB to make your LFS system bootable will be discussed in
[f9bcaec]83 <xref linkend="ch-bootable-grub"/>.</para>
[4ae4324]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>
[f9bcaec]92 <segtitle>Installed directories</segtitle>
[4ae4324]93
94 <seglistitem>
[2ca8941]95
[040ecb6]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,
[94d3eee]99 grub-mkimage, grub-mklayout, grub-mknetdir,
[6d53efc]100 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
[040ecb6]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>
[6d53efc]104
[040ecb6]105 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, and boot/grub (when grub-install
106 is first run)</seg>
[4ae4324]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
[6d53efc]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
[f9bcaec]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
[040ecb6]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
[3119ddc]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
[040ecb6]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
[9d42ad9]166 <varlistentry id="grub-install">
167 <term><command>grub-install</command></term>
[f9bcaec]168 <listitem>
[9d42ad9]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
[3119ddc]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
[040ecb6]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
[3119ddc]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
[9d42ad9]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>
[f9bcaec]214 </indexterm>
215 </listitem>
216 </varlistentry>
217
[3119ddc]218 <varlistentry id="grub-mkimage">
219 <term><command>grub-mkimage</command></term>
[f9bcaec]220 <listitem>
221 <para>Make a bootable image of GRUB</para>
[3119ddc]222 <indexterm zone="ch-system-grub grub-mkimage">
223 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
[f9bcaec]224 </indexterm>
225 </listitem>
226 </varlistentry>
227
[3119ddc]228 <varlistentry id="grub-mklayout">
229 <term><command>grub-mklayout</command></term>
[f9bcaec]230 <listitem>
[3119ddc]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>
[f9bcaec]234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[3119ddc]238 <varlistentry id="grub-mknetdir">
239 <term><command>grub-mknetdir</command></term>
[4ae4324]240 <listitem>
[3119ddc]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>
[4ae4324]244 </indexterm>
245 </listitem>
246 </varlistentry>
247
[9d42ad9]248 <varlistentry id="grub-mkpasswd-pbkdf2">
249 <term><command>grub-mkpasswd-pbkdf2</command></term>
[4ae4324]250 <listitem>
[9d42ad9]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>
[4ae4324]255 </indexterm>
256 </listitem>
257 </varlistentry>
258
[9d42ad9]259 <varlistentry id="grub-mkrelpath">
260 <term><command>grub-mkrelpath</command></term>
[4ae4324]261 <listitem>
[9d42ad9]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>
[4ae4324]265 </indexterm>
266 </listitem>
267 </varlistentry>
268
[9d42ad9]269 <varlistentry id="grub-mkrescue">
270 <term><command>grub-mkrescue</command></term>
[8bc46a5]271 <listitem>
[501f1f24]272 <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
[9d42ad9]273 <indexterm zone="ch-system-grub grub-mkrescue">
274 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
[8bc46a5]275 </indexterm>
276 </listitem>
277 </varlistentry>
278
[6d53efc]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
[f9bcaec]299 <varlistentry id="grub-probe">
300 <term><command>grub-probe</command></term>
[4ae4324]301 <listitem>
[f9bcaec]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>
[4ae4324]305 </indexterm>
306 </listitem>
307 </varlistentry>
308
[9d42ad9]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
[040ecb6]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
[9d42ad9]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
[6d53efc]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
[040ecb6]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
[4ae4324]369 </variablelist>
370
371 </sect2>
[673b0d8]372
373</sect1>
Note: See TracBrowser for help on using the repository browser.