[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 |
|
---|
[f9bcaec] | 45 | <screen><userinput remap="configure">mkdir build
|
---|
| 46 | cd build
|
---|
| 47 | ../configure --prefix=/usr \
|
---|
| 48 | --sysconfdir=/etc \
|
---|
| 49 | --disable-grub-emu \
|
---|
| 50 | --disable-grub-emu-usb \
|
---|
| 51 | --disable-grub-fstest \
|
---|
| 52 | --disable-efiemu</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para>Using a separate build directory keeps the 2400 generated
|
---|
| 55 | files out of the main directory and is recommeded by the developers.
|
---|
[a9ca58e] | 56 | The --disable switches just minimize what is built by disabling
|
---|
[f9bcaec] | 57 | features and testing programs not really needed for LFS.</para>
|
---|
[9dfc02f] | 58 |
|
---|
[4ae4324] | 59 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 60 |
|
---|
[0445a3d] | 61 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 62 |
|
---|
[f9bcaec] | 63 | <para>This package does not come with a test suite.</para>
|
---|
[81fd230] | 64 |
|
---|
[4ae4324] | 65 | <para>Install the package:</para>
|
---|
[73aedd1d] | 66 |
|
---|
[f9bcaec] | 67 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[4ae4324] | 68 |
|
---|
[4ea5320] | 69 | <para>Using GRUB to make your LFS system bootable will be discussed in
|
---|
[f9bcaec] | 70 | <xref linkend="ch-bootable-grub"/>.</para>
|
---|
[4ae4324] | 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 id="contents-gRUB" role="content">
|
---|
| 75 | <title>Contents of GRUB</title>
|
---|
| 76 |
|
---|
| 77 | <segmentedlist>
|
---|
| 78 | <segtitle>Installed programs</segtitle>
|
---|
[f9bcaec] | 79 | <segtitle>Installed directories</segtitle>
|
---|
[4ae4324] | 80 |
|
---|
| 81 | <seglistitem>
|
---|
[f9bcaec] | 82 | <seg>grub-editenv, grub-mkelfimage, grub-mkfont, grub-mkimage,
|
---|
| 83 | grub-mkrescue, grub-dumpbios, grub-install, grub-mkconfig,
|
---|
| 84 | grub-mkdevicemap, grub-probe, grub-setup</seg>
|
---|
| 85 |
|
---|
| 86 | <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /usr/inclue/grub</seg>
|
---|
[4ae4324] | 87 | </seglistitem>
|
---|
| 88 | </segmentedlist>
|
---|
| 89 |
|
---|
| 90 | <variablelist>
|
---|
| 91 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 92 | <?dbfo list-presentation="list"?>
|
---|
| 93 | <?dbhtml list-presentation="table"?>
|
---|
| 94 |
|
---|
[f9bcaec] | 95 | <varlistentry id="grub-editenv">
|
---|
| 96 | <term><command>grub-editenv</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>A tool to edit the environment block</para>
|
---|
| 99 | <indexterm zone="ch-system-grub grub-editenv">
|
---|
| 100 | <primary sortas="b-grub-editenv">grub-editenv</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="grub-mkelfimage">
|
---|
| 106 | <term><command>grub-mkelfimage</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Make a bootable image of GRUB</para>
|
---|
| 109 | <indexterm zone="ch-system-grub grub-mkelfimage">
|
---|
| 110 | <primary sortas="b-grub-mkelfimage">grub-mkelfimage</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="grub-mkfont">
|
---|
| 116 | <term><command>grub-mkfont</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Update fonts for GRUB use</para>
|
---|
| 119 | <indexterm zone="ch-system-grub grub-mkfont">
|
---|
| 120 | <primary sortas="b-grub-mkfont">grub-mkfont</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="grub-mkimage">
|
---|
| 126 | <term><command>grub-mkimage</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Make a bootable image of GRUB</para>
|
---|
| 129 | <indexterm zone="ch-system-grub grub-mkimage">
|
---|
| 130 | <primary sortas="b-grub-mkimage">grub-mkimage</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="grub-mkrescue">
|
---|
| 136 | <term><command>grub-mkrescue</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Make a bootable image of GRUB suitable for a floppy disk</para>
|
---|
| 139 | <indexterm zone="ch-system-grub grub-mkrescue">
|
---|
| 140 | <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="grub-dumpbios">
|
---|
| 146 | <term><command>grub-dumpbios</command></term>
|
---|
[4ae4324] | 147 | <listitem>
|
---|
[f9bcaec] | 148 | <para>Create vbios and int10 dump</para>
|
---|
| 149 | <indexterm zone="ch-system-grub grub-dumpbios">
|
---|
| 150 | <primary sortas="b-grub-dumpbios">grub-dumpbios</primary>
|
---|
[4ae4324] | 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="grub-install">
|
---|
| 156 | <term><command>grub-install</command></term>
|
---|
| 157 | <listitem>
|
---|
[f9bcaec] | 158 | <para>Install GRUB on your drive</para>
|
---|
[4ae4324] | 159 | <indexterm zone="ch-system-grub grub-install">
|
---|
| 160 | <primary sortas="b-grub-install">grub-install</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
[f9bcaec] | 165 | <varlistentry id="grub-mkconfig">
|
---|
| 166 | <term><command>grub-mkconfig</command></term>
|
---|
[4ae4324] | 167 | <listitem>
|
---|
[f9bcaec] | 168 | <para>Generate a grub config file</para>
|
---|
| 169 | <indexterm zone="ch-system-grub grub-mkconfig">
|
---|
| 170 | <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
|
---|
[4ae4324] | 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[f9bcaec] | 175 | <varlistentry id="grub-mkdevicemap">
|
---|
| 176 | <term><command>grub-mkdevicemap</command></term>
|
---|
[8bc46a5] | 177 | <listitem>
|
---|
[f9bcaec] | 178 | <para>Generate a device map file automatically</para>
|
---|
| 179 | <indexterm zone="ch-system-grub grub-mkdevicemap">
|
---|
| 180 | <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
|
---|
[8bc46a5] | 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[f9bcaec] | 185 | <varlistentry id="grub-probe">
|
---|
| 186 | <term><command>grub-probe</command></term>
|
---|
[4ae4324] | 187 | <listitem>
|
---|
[f9bcaec] | 188 | <para>Probe device information for a given path or device</para>
|
---|
| 189 | <indexterm zone="ch-system-grub grub-probe">
|
---|
| 190 | <primary sortas="b-grub-probe">grub-probe</primary>
|
---|
[4ae4324] | 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
[f9bcaec] | 195 | <varlistentry id="grub-setup">
|
---|
| 196 | <term><command>grub-setup</command></term>
|
---|
[4ae4324] | 197 | <listitem>
|
---|
[f9bcaec] | 198 | <para>Set up images to boot from a device</para>
|
---|
| 199 | <indexterm zone="ch-system-grub grub-setup">
|
---|
| 200 | <primary sortas="b-grub-setup">grub-setup</primary>
|
---|
[4ae4324] | 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
[673b0d8] | 208 |
|
---|
| 209 | </sect1>
|
---|