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">
8 <sect1 id="ch-system-grub" role="wrap">
9 <?dbhtml filename="grub.html"?>
11 <sect1info condition="script">
12 <productname>grub</productname>
13 <productnumber>&grub-version;</productnumber>
14 <address>&grub-url;</address>
17 <title>GRUB-&grub-version;</title>
19 <indexterm zone="ch-system-grub">
20 <primary sortas="a-Grub">GRUB</primary>
23 <sect2 role="package">
26 <para>The GRUB package contains the GRand Unified Bootloader.</para>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
33 <seg>&grub-ch6-sbu;</seg>
34 <seg>&grub-ch6-du;</seg>
40 <sect2 role="installation">
41 <title>Installation of GRUB</title>
43 <para>Prepare GRUB for compilation:</para>
45 <screen><userinput remap="configure">./configure --prefix=/usr \
48 --disable-grub-emu-usb \
50 --disable-werror</userinput></screen>
53 <title>The meaning of the new configure options:</title>
56 <term><parameter>--disable-werror</parameter></term>
58 <para>This allows the build to complete with warnings introduced
59 by more recent Flex versions.</para>
64 <term><parameter>--disable-grub-emu-usb --disable-efiemu</parameter></term>
66 <para>These options minimize what is built by disabling features and
67 testing programs not needed for LFS.</para>
73 <para>Compile the package:</para>
75 <screen><userinput remap="make">make</userinput></screen>
77 <para>This package does not come with a test suite.</para>
79 <para>Install the package:</para>
81 <screen><userinput remap="install">make install</userinput></screen>
83 <para>Using GRUB to make your LFS system bootable will be discussed in
84 <xref linkend="ch-bootable-grub"/>.</para>
88 <sect2 id="contents-gRUB" role="content">
89 <title>Contents of GRUB</title>
92 <segtitle>Installed programs</segtitle>
93 <segtitle>Installed directories</segtitle>
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,
100 grub-mkimage, grub-mklayout, grub-mknetdir,
101 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
102 grub-ofpathname, grub-probe, grub-reboot, grub-render-label,
104 grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg>
106 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, and boot/grub (when grub-install
112 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
113 <?dbfo list-presentation="list"?>
114 <?dbhtml list-presentation="table"?>
116 <varlistentry id="grub-bios-setup">
117 <term><command>grub-bios-setup</command></term>
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>
126 <varlistentry id="grub-editenv">
127 <term><command>grub-editenv</command></term>
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>
136 <varlistentry id="grub-file">
137 <term><command>grub-file</command></term>
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>
146 <varlistentry id="grub-fstest">
147 <term><command>grub-fstest</command></term>
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>
156 <varlistentry id="grub-glue-efi">
157 <term><command>grub-glue-efi</command></term>
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>
167 <varlistentry id="grub-install">
168 <term><command>grub-install</command></term>
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>
177 <varlistentry id="grub-kbdcomp">
178 <term><command>grub-kbdcomp</command></term>
180 <para>Script that converts an xkb layout into one recognized by
182 <indexterm zone="ch-system-grub grub-kbdcomp">
183 <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
188 <varlistentry id="grub-macbless">
189 <term><command>grub-macbless</command></term>
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>
198 <varlistentry id="grub-menulst2cfg">
199 <term><command>grub-menulst2cfg</command></term>
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>
209 <varlistentry id="grub-mkconfig">
210 <term><command>grub-mkconfig</command></term>
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>
219 <varlistentry id="grub-mkimage">
220 <term><command>grub-mkimage</command></term>
222 <para>Make a bootable image of GRUB</para>
223 <indexterm zone="ch-system-grub grub-mkimage">
224 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
229 <varlistentry id="grub-mklayout">
230 <term><command>grub-mklayout</command></term>
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>
239 <varlistentry id="grub-mknetdir">
240 <term><command>grub-mknetdir</command></term>
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>
249 <varlistentry id="grub-mkpasswd-pbkdf2">
250 <term><command>grub-mkpasswd-pbkdf2</command></term>
252 <para>Generates an encrypted PBKDF2 password for use in the boot
254 <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
255 <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
260 <varlistentry id="grub-mkrelpath">
261 <term><command>grub-mkrelpath</command></term>
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>
270 <varlistentry id="grub-mkrescue">
271 <term><command>grub-mkrescue</command></term>
273 <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
274 <indexterm zone="ch-system-grub grub-mkrescue">
275 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
280 <varlistentry id="grub-mkstandalone">
281 <term><command>grub-mkstandalone</command></term>
283 <para>Generates a standalone image</para>
284 <indexterm zone="ch-system-grub grub-mkstandalone">
285 <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
290 <varlistentry id="grub-ofpathname">
291 <term><command>grub-ofpathname</command></term>
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>
300 <varlistentry id="grub-probe">
301 <term><command>grub-probe</command></term>
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>
310 <varlistentry id="grub-reboot">
311 <term><command>grub-reboot</command></term>
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>
320 <varlistentry id="grub-render-label">
321 <term><command>grub-render-label</command></term>
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>
330 <varlistentry id="grub-script-check">
331 <term><command>grub-script-check</command></term>
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>
340 <varlistentry id="grub-set-default">
341 <term><command>grub-set-default</command></term>
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>
350 <varlistentry id="grub-sparc64-setup">
351 <term><command>grub-sparc64-setup</command></term>
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>
360 <varlistentry id="grub-syslinux2cfg">
361 <term><command>grub-syslinux2cfg</command></term>
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>