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-fstest,
98 grub-install, grub-kbdcomp, 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-script-check,
102 grub-set-default, grub-sparc64-setup </seg>
104 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /boot/grub</seg>
109 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
110 <?dbfo list-presentation="list"?>
111 <?dbhtml list-presentation="table"?>
113 <varlistentry id="grub-bios-setup">
114 <term><command>grub-bios-setup</command></term>
116 <para>Is a helper program for grub-install</para>
117 <indexterm zone="ch-system-grub grub-bios-setup">
118 <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
123 <varlistentry id="grub-editenv">
124 <term><command>grub-editenv</command></term>
126 <para>A tool to edit the environment block</para>
127 <indexterm zone="ch-system-grub grub-editenv">
128 <primary sortas="b-grub-editenv">grub-editenv</primary>
133 <varlistentry id="grub-fstest">
134 <term><command>grub-fstest</command></term>
136 <para>Tool to debug the filesystem driver</para>
137 <indexterm zone="ch-system-grub grub-fstest">
138 <primary sortas="b-grub-fstest">grub-fstest</primary>
143 <varlistentry id="grub-install">
144 <term><command>grub-install</command></term>
146 <para>Install GRUB on your drive</para>
147 <indexterm zone="ch-system-grub grub-install">
148 <primary sortas="b-grub-install">grub-install</primary>
153 <varlistentry id="grub-kbdcomp">
154 <term><command>grub-kbdcomp</command></term>
156 <para>Script that converts an xkb layout into one recognized by
158 <indexterm zone="ch-system-grub grub-kbdcomp">
159 <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
164 <varlistentry id="grub-menulst2cfg">
165 <term><command>grub-menulst2cfg</command></term>
167 <para>Converts a GRUB Legacy <filename>menu.lst</filename>
168 into a <filename>grub.cfg</filename> for use with GRUB 2</para>
169 <indexterm zone="ch-system-grub grub-menulst2cfg">
170 <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
175 <varlistentry id="grub-mkconfig">
176 <term><command>grub-mkconfig</command></term>
178 <para>Generate a grub config file</para>
179 <indexterm zone="ch-system-grub grub-mkconfig">
180 <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
185 <varlistentry id="grub-mkimage">
186 <term><command>grub-mkimage</command></term>
188 <para>Make a bootable image of GRUB</para>
189 <indexterm zone="ch-system-grub grub-mkimage">
190 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
195 <varlistentry id="grub-mklayout">
196 <term><command>grub-mklayout</command></term>
198 <para>Generates a GRUB keyboard layout file</para>
199 <indexterm zone="ch-system-grub grub-mklayout">
200 <primary sortas="b-grub-mklayout">grub-mklayout</primary>
205 <varlistentry id="grub-mknetdir">
206 <term><command>grub-mknetdir</command></term>
208 <para>Prepares a GRUB netboot directory</para>
209 <indexterm zone="ch-system-grub grub-mknetdir">
210 <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
215 <varlistentry id="grub-mkpasswd-pbkdf2">
216 <term><command>grub-mkpasswd-pbkdf2</command></term>
218 <para>Generates an encrypted PBKDF2 password for use in the boot
220 <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
221 <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
226 <varlistentry id="grub-mkrelpath">
227 <term><command>grub-mkrelpath</command></term>
229 <para>Makes a system pathname relative to its root</para>
230 <indexterm zone="ch-system-grub grub-mkrelpath">
231 <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
236 <varlistentry id="grub-mkrescue">
237 <term><command>grub-mkrescue</command></term>
239 <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
240 <indexterm zone="ch-system-grub grub-mkrescue">
241 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
246 <varlistentry id="grub-mkstandalone">
247 <term><command>grub-mkstandalone</command></term>
249 <para>Generates a standalone image</para>
250 <indexterm zone="ch-system-grub grub-mkstandalone">
251 <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
256 <varlistentry id="grub-ofpathname">
257 <term><command>grub-ofpathname</command></term>
259 <para>Is a helper program that prints the path of a GRUB device</para>
260 <indexterm zone="ch-system-grub grub-ofpathname">
261 <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
266 <varlistentry id="grub-probe">
267 <term><command>grub-probe</command></term>
269 <para>Probe device information for a given path or device</para>
270 <indexterm zone="ch-system-grub grub-probe">
271 <primary sortas="b-grub-probe">grub-probe</primary>
276 <varlistentry id="grub-reboot">
277 <term><command>grub-reboot</command></term>
279 <para>Sets the default boot entry for GRUB for the next boot only</para>
280 <indexterm zone="ch-system-grub grub-reboot">
281 <primary sortas="b-grub-reboot">grub-reboot</primary>
286 <varlistentry id="grub-script-check">
287 <term><command>grub-script-check</command></term>
289 <para>Checks GRUB configuration script for syntax errors</para>
290 <indexterm zone="ch-system-grub grub-script-check">
291 <primary sortas="b-grub-script-check">grub-script-check</primary>
296 <varlistentry id="grub-set-default">
297 <term><command>grub-set-default</command></term>
299 <para>Sets the default boot entry for GRUB</para>
300 <indexterm zone="ch-system-grub grub-set-default">
301 <primary sortas="b-grub-set-default">grub-set-default</primary>
306 <varlistentry id="grub-sparc64-setup">
307 <term><command>grub-sparc64-setup</command></term>
309 <para>Is a helper program for grub-setup</para>
310 <indexterm zone="ch-system-grub grub-sparc64-setup">
311 <primary sortas="b-grub-sparc64-setup">grub-setup</primary>