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