source: chapter06/grub.xml@ 15faad9

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 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 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 15faad9 was 9f5aaf7, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Add whitespace for better readability of instructions

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

  • Property mode set to 100644
File size: 9.7 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 --sysconfdir=/etc \
47 --disable-grub-emu-usb \
48 --disable-efiemu \
49 --disable-werror</userinput></screen>
50
51 <para>The --disable switches minimize what is built by disabling features
52 and testing programs not really needed for LFS.</para>
53
54 <para>Compile the package:</para>
55
56<screen><userinput remap="make">make</userinput></screen>
57
58 <para>This package does not come with a test suite.</para>
59
60 <para>Install the package:</para>
61
62<screen><userinput remap="install">make install</userinput></screen>
63
64 <para>Using GRUB to make your LFS system bootable will be discussed in
65 <xref linkend="ch-bootable-grub"/>.</para>
66
67 </sect2>
68
69 <sect2 id="contents-gRUB" role="content">
70 <title>Contents of GRUB</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74 <segtitle>Installed directories</segtitle>
75
76 <seglistitem>
77 <seg>grub-bin2h, grub-editenv, grub-fstest, grub-install, grub-kbdcomp,
78 grub-menulst2cfg, grub-mkconfig, grub-mkdevicemap, grub-mkimage,
79 grub-mklayout, grub-mknetdir, grub-mkpasswd-pbkdf2, grub-mkrelpath,
80 grub-mkrescue, grub-probe, grub-reboot, grub-script-check,
81 grub-set-default, grub-setup</seg>
82 <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="grub-bin2h">
92 <term><command>grub-bin2h</command></term>
93 <listitem>
94 <para>Converts a binary file to a C header</para>
95 <indexterm zone="ch-system-grub grub-bin2h">
96 <primary sortas="b-grub-bin2h">grub-bin2h</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="grub-editenv">
102 <term><command>grub-editenv</command></term>
103 <listitem>
104 <para>A tool to edit the environment block</para>
105 <indexterm zone="ch-system-grub grub-editenv">
106 <primary sortas="b-grub-editenv">grub-editenv</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="grub-fstest">
112 <term><command>grub-fstest</command></term>
113 <listitem>
114 <para>Tool to debug the filesystem driver</para>
115 <indexterm zone="ch-system-grub grub-fstest">
116 <primary sortas="b-grub-fstest">grub-fstest</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="grub-install">
122 <term><command>grub-install</command></term>
123 <listitem>
124 <para>Install GRUB on your drive</para>
125 <indexterm zone="ch-system-grub grub-install">
126 <primary sortas="b-grub-install">grub-install</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="grub-kbdcomp">
132 <term><command>grub-kbdcomp</command></term>
133 <listitem>
134 <para>Script that converts an xkb layout into one recognized by
135 GRUB</para>
136 <indexterm zone="ch-system-grub grub-kbdcomp">
137 <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="grub-menulst2cfg">
143 <term><command>grub-menulst2cfg</command></term>
144 <listitem>
145 <para>Converts a GRUB Legacy <filename>menu.lst</filename>
146 into a <filename>grub.cfg</filename> for use with GRUB 2</para>
147 <indexterm zone="ch-system-grub grub-menulst2cfg">
148 <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="grub-mkconfig">
154 <term><command>grub-mkconfig</command></term>
155 <listitem>
156 <para>Generate a grub config file</para>
157 <indexterm zone="ch-system-grub grub-mkconfig">
158 <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="grub-mkdevicemap">
164 <term><command>grub-mkdevicemap</command></term>
165 <listitem>
166 <para>Generate a device map file automatically</para>
167 <indexterm zone="ch-system-grub grub-mkdevicemap">
168 <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="grub-mkimage">
174 <term><command>grub-mkimage</command></term>
175 <listitem>
176 <para>Make a bootable image of GRUB</para>
177 <indexterm zone="ch-system-grub grub-mkimage">
178 <primary sortas="b-grub-mkimage">grub-mkimage</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="grub-mklayout">
184 <term><command>grub-mklayout</command></term>
185 <listitem>
186 <para>Generates a GRUB keyboard layout file</para>
187 <indexterm zone="ch-system-grub grub-mklayout">
188 <primary sortas="b-grub-mklayout">grub-mklayout</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="grub-mknetdir">
194 <term><command>grub-mknetdir</command></term>
195 <listitem>
196 <para>Prepares a GRUB netboot directory</para>
197 <indexterm zone="ch-system-grub grub-mknetdir">
198 <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="grub-mkpasswd-pbkdf2">
204 <term><command>grub-mkpasswd-pbkdf2</command></term>
205 <listitem>
206 <para>Generates an encrypted PBKDF2 password for use in the boot
207 menu</para>
208 <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
209 <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="grub-mkrelpath">
215 <term><command>grub-mkrelpath</command></term>
216 <listitem>
217 <para>Makes a system pathname relative to its root</para>
218 <indexterm zone="ch-system-grub grub-mkrelpath">
219 <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="grub-mkrescue">
225 <term><command>grub-mkrescue</command></term>
226 <listitem>
227 <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
228 <indexterm zone="ch-system-grub grub-mkrescue">
229 <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="grub-probe">
235 <term><command>grub-probe</command></term>
236 <listitem>
237 <para>Probe device information for a given path or device</para>
238 <indexterm zone="ch-system-grub grub-probe">
239 <primary sortas="b-grub-probe">grub-probe</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="grub-reboot">
245 <term><command>grub-reboot</command></term>
246 <listitem>
247 <para>Sets the default boot entry for GRUB for the next boot only</para>
248 <indexterm zone="ch-system-grub grub-reboot">
249 <primary sortas="b-grub-reboot">grub-reboot</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="grub-script-check">
255 <term><command>grub-script-check</command></term>
256 <listitem>
257 <para>Checks GRUB configuration script for syntax errors</para>
258 <indexterm zone="ch-system-grub grub-script-check">
259 <primary sortas="b-grub-script-check">grub-script-check</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="grub-set-default">
265 <term><command>grub-set-default</command></term>
266 <listitem>
267 <para>Sets the default boot entry for GRUB</para>
268 <indexterm zone="ch-system-grub grub-set-default">
269 <primary sortas="b-grub-set-default">grub-set-default</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="grub-setup">
275 <term><command>grub-setup</command></term>
276 <listitem>
277 <para>Set up images to boot from a device</para>
278 <indexterm zone="ch-system-grub grub-setup">
279 <primary sortas="b-grub-setup">grub-setup</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.