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-grub-fstest \
|
---|
49 | --disable-efiemu</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-editenv, grub-mkelfimage, grub-mkfont, grub-mkimage,
|
---|
78 | grub-mkrescue, grub-dumpbios, grub-install, grub-mkconfig,
|
---|
79 | grub-mkdevicemap, grub-probe, grub-setup</seg>
|
---|
80 |
|
---|
81 | <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /usr/include/grub</seg>
|
---|
82 | </seglistitem>
|
---|
83 | </segmentedlist>
|
---|
84 |
|
---|
85 | <variablelist>
|
---|
86 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
87 | <?dbfo list-presentation="list"?>
|
---|
88 | <?dbhtml list-presentation="table"?>
|
---|
89 |
|
---|
90 | <varlistentry id="grub-editenv">
|
---|
91 | <term><command>grub-editenv</command></term>
|
---|
92 | <listitem>
|
---|
93 | <para>A tool to edit the environment block</para>
|
---|
94 | <indexterm zone="ch-system-grub grub-editenv">
|
---|
95 | <primary sortas="b-grub-editenv">grub-editenv</primary>
|
---|
96 | </indexterm>
|
---|
97 | </listitem>
|
---|
98 | </varlistentry>
|
---|
99 |
|
---|
100 | <varlistentry id="grub-mkelfimage">
|
---|
101 | <term><command>grub-mkelfimage</command></term>
|
---|
102 | <listitem>
|
---|
103 | <para>Make a bootable image of GRUB</para>
|
---|
104 | <indexterm zone="ch-system-grub grub-mkelfimage">
|
---|
105 | <primary sortas="b-grub-mkelfimage">grub-mkelfimage</primary>
|
---|
106 | </indexterm>
|
---|
107 | </listitem>
|
---|
108 | </varlistentry>
|
---|
109 |
|
---|
110 | <varlistentry id="grub-mkfont">
|
---|
111 | <term><command>grub-mkfont</command></term>
|
---|
112 | <listitem>
|
---|
113 | <para>Update fonts for GRUB use</para>
|
---|
114 | <indexterm zone="ch-system-grub grub-mkfont">
|
---|
115 | <primary sortas="b-grub-mkfont">grub-mkfont</primary>
|
---|
116 | </indexterm>
|
---|
117 | </listitem>
|
---|
118 | </varlistentry>
|
---|
119 |
|
---|
120 | <varlistentry id="grub-mkimage">
|
---|
121 | <term><command>grub-mkimage</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>Make a bootable image of GRUB</para>
|
---|
124 | <indexterm zone="ch-system-grub grub-mkimage">
|
---|
125 | <primary sortas="b-grub-mkimage">grub-mkimage</primary>
|
---|
126 | </indexterm>
|
---|
127 | </listitem>
|
---|
128 | </varlistentry>
|
---|
129 |
|
---|
130 | <varlistentry id="grub-mkrescue">
|
---|
131 | <term><command>grub-mkrescue</command></term>
|
---|
132 | <listitem>
|
---|
133 | <para>Make a bootable image of GRUB suitable for a floppy disk</para>
|
---|
134 | <indexterm zone="ch-system-grub grub-mkrescue">
|
---|
135 | <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
|
---|
136 | </indexterm>
|
---|
137 | </listitem>
|
---|
138 | </varlistentry>
|
---|
139 |
|
---|
140 | <varlistentry id="grub-dumpbios">
|
---|
141 | <term><command>grub-dumpbios</command></term>
|
---|
142 | <listitem>
|
---|
143 | <para>Create vbios and int10 dump</para>
|
---|
144 | <indexterm zone="ch-system-grub grub-dumpbios">
|
---|
145 | <primary sortas="b-grub-dumpbios">grub-dumpbios</primary>
|
---|
146 | </indexterm>
|
---|
147 | </listitem>
|
---|
148 | </varlistentry>
|
---|
149 |
|
---|
150 | <varlistentry id="grub-install">
|
---|
151 | <term><command>grub-install</command></term>
|
---|
152 | <listitem>
|
---|
153 | <para>Install GRUB on your drive</para>
|
---|
154 | <indexterm zone="ch-system-grub grub-install">
|
---|
155 | <primary sortas="b-grub-install">grub-install</primary>
|
---|
156 | </indexterm>
|
---|
157 | </listitem>
|
---|
158 | </varlistentry>
|
---|
159 |
|
---|
160 | <varlistentry id="grub-mkconfig">
|
---|
161 | <term><command>grub-mkconfig</command></term>
|
---|
162 | <listitem>
|
---|
163 | <para>Generate a grub config file</para>
|
---|
164 | <indexterm zone="ch-system-grub grub-mkconfig">
|
---|
165 | <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
|
---|
166 | </indexterm>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | <varlistentry id="grub-mkdevicemap">
|
---|
171 | <term><command>grub-mkdevicemap</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>Generate a device map file automatically</para>
|
---|
174 | <indexterm zone="ch-system-grub grub-mkdevicemap">
|
---|
175 | <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
|
---|
176 | </indexterm>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="grub-probe">
|
---|
181 | <term><command>grub-probe</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>Probe device information for a given path or device</para>
|
---|
184 | <indexterm zone="ch-system-grub grub-probe">
|
---|
185 | <primary sortas="b-grub-probe">grub-probe</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="grub-setup">
|
---|
191 | <term><command>grub-setup</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>Set up images to boot from a device</para>
|
---|
194 | <indexterm zone="ch-system-grub grub-setup">
|
---|
195 | <primary sortas="b-grub-setup">grub-setup</primary>
|
---|
196 | </indexterm>
|
---|
197 | </listitem>
|
---|
198 | </varlistentry>
|
---|
199 |
|
---|
200 | </variablelist>
|
---|
201 |
|
---|
202 | </sect2>
|
---|
203 |
|
---|
204 | </sect1>
|
---|