[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 |
|
---|
[f1c177f] | 43 | <para>Fix an incompatibility between this package and Glibc-&glibc-version;:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput remap="pre">sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h</userinput></screen>
|
---|
| 46 |
|
---|
[4ae4324] | 47 | <para>Prepare GRUB for compilation:</para>
|
---|
[9dfc02f] | 48 |
|
---|
[9f5aaf7] | 49 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
[3e2ac00] | 50 | --sbindir=/sbin \
|
---|
[9f5aaf7] | 51 | --sysconfdir=/etc \
|
---|
| 52 | --disable-grub-emu-usb \
|
---|
[b815cec] | 53 | --disable-efiemu \
|
---|
| 54 | --disable-werror</userinput></screen>
|
---|
[f9bcaec] | 55 |
|
---|
[b815cec] | 56 | <para>The --disable-werror option allows the build to complete with
|
---|
| 57 | warnings introduced by more recent flex versions. The other --disable
|
---|
| 58 | switches minimize what is built by disabling features and testing programs
|
---|
| 59 | not needed for LFS.</para>
|
---|
[9dfc02f] | 60 |
|
---|
[4ae4324] | 61 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 62 |
|
---|
[0445a3d] | 63 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 64 |
|
---|
[f9bcaec] | 65 | <para>This package does not come with a test suite.</para>
|
---|
[81fd230] | 66 |
|
---|
[4ae4324] | 67 | <para>Install the package:</para>
|
---|
[73aedd1d] | 68 |
|
---|
[f9bcaec] | 69 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[4ae4324] | 70 |
|
---|
[ce5ebe1] | 71 | <para>Using GRUB to make your LFS system bootable will be discussed in
|
---|
[f9bcaec] | 72 | <xref linkend="ch-bootable-grub"/>.</para>
|
---|
[4ae4324] | 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2 id="contents-gRUB" role="content">
|
---|
| 77 | <title>Contents of GRUB</title>
|
---|
| 78 |
|
---|
| 79 | <segmentedlist>
|
---|
| 80 | <segtitle>Installed programs</segtitle>
|
---|
[f9bcaec] | 81 | <segtitle>Installed directories</segtitle>
|
---|
[4ae4324] | 82 |
|
---|
| 83 | <seglistitem>
|
---|
[ce5ebe1] | 84 |
|
---|
[94d3eee] | 85 | <seg> grub-bios-setup, grub-editenv, grub-fstest,
|
---|
[6d53efc] | 86 | grub-install, grub-kbdcomp, grub-menulst2cfg, grub-mkconfig,
|
---|
[94d3eee] | 87 | grub-mkimage, grub-mklayout, grub-mknetdir,
|
---|
[6d53efc] | 88 | grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
|
---|
| 89 | grub-ofpathname, grub-probe, grub-reboot, grub-script-check,
|
---|
[94d3eee] | 90 | grub-set-default, grub-sparc64-setup </seg>
|
---|
[6d53efc] | 91 |
|
---|
| 92 | <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /boot/grub</seg>
|
---|
[4ae4324] | 93 | </seglistitem>
|
---|
| 94 | </segmentedlist>
|
---|
| 95 |
|
---|
| 96 | <variablelist>
|
---|
| 97 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 98 | <?dbfo list-presentation="list"?>
|
---|
| 99 | <?dbhtml list-presentation="table"?>
|
---|
| 100 |
|
---|
[6d53efc] | 101 | <varlistentry id="grub-bios-setup">
|
---|
| 102 | <term><command>grub-bios-setup</command></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Is a helper program for grub-install</para>
|
---|
| 105 | <indexterm zone="ch-system-grub grub-bios-setup">
|
---|
| 106 | <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
|
---|
| 107 | </indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
[f9bcaec] | 111 | <varlistentry id="grub-editenv">
|
---|
| 112 | <term><command>grub-editenv</command></term>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>A tool to edit the environment block</para>
|
---|
| 115 | <indexterm zone="ch-system-grub grub-editenv">
|
---|
| 116 | <primary sortas="b-grub-editenv">grub-editenv</primary>
|
---|
| 117 | </indexterm>
|
---|
| 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
[3119ddc] | 121 | <varlistentry id="grub-fstest">
|
---|
| 122 | <term><command>grub-fstest</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>Tool to debug the filesystem driver</para>
|
---|
| 125 | <indexterm zone="ch-system-grub grub-fstest">
|
---|
| 126 | <primary sortas="b-grub-fstest">grub-fstest</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
[9d42ad9] | 131 | <varlistentry id="grub-install">
|
---|
| 132 | <term><command>grub-install</command></term>
|
---|
[f9bcaec] | 133 | <listitem>
|
---|
[9d42ad9] | 134 | <para>Install GRUB on your drive</para>
|
---|
| 135 | <indexterm zone="ch-system-grub grub-install">
|
---|
| 136 | <primary sortas="b-grub-install">grub-install</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
[3119ddc] | 141 | <varlistentry id="grub-kbdcomp">
|
---|
| 142 | <term><command>grub-kbdcomp</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>Script that converts an xkb layout into one recognized by
|
---|
| 145 | GRUB</para>
|
---|
| 146 | <indexterm zone="ch-system-grub grub-kbdcomp">
|
---|
| 147 | <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="grub-menulst2cfg">
|
---|
| 153 | <term><command>grub-menulst2cfg</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>Converts a GRUB Legacy <filename>menu.lst</filename>
|
---|
| 156 | into a <filename>grub.cfg</filename> for use with GRUB 2</para>
|
---|
| 157 | <indexterm zone="ch-system-grub grub-menulst2cfg">
|
---|
| 158 | <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
[9d42ad9] | 163 | <varlistentry id="grub-mkconfig">
|
---|
| 164 | <term><command>grub-mkconfig</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>Generate a grub config file</para>
|
---|
| 167 | <indexterm zone="ch-system-grub grub-mkconfig">
|
---|
| 168 | <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
|
---|
[f9bcaec] | 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
[3119ddc] | 173 | <varlistentry id="grub-mkimage">
|
---|
| 174 | <term><command>grub-mkimage</command></term>
|
---|
[f9bcaec] | 175 | <listitem>
|
---|
| 176 | <para>Make a bootable image of GRUB</para>
|
---|
[3119ddc] | 177 | <indexterm zone="ch-system-grub grub-mkimage">
|
---|
| 178 | <primary sortas="b-grub-mkimage">grub-mkimage</primary>
|
---|
[f9bcaec] | 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
[3119ddc] | 183 | <varlistentry id="grub-mklayout">
|
---|
| 184 | <term><command>grub-mklayout</command></term>
|
---|
[f9bcaec] | 185 | <listitem>
|
---|
[3119ddc] | 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>
|
---|
[f9bcaec] | 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
[3119ddc] | 193 | <varlistentry id="grub-mknetdir">
|
---|
| 194 | <term><command>grub-mknetdir</command></term>
|
---|
[4ae4324] | 195 | <listitem>
|
---|
[3119ddc] | 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>
|
---|
[4ae4324] | 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
[9d42ad9] | 203 | <varlistentry id="grub-mkpasswd-pbkdf2">
|
---|
| 204 | <term><command>grub-mkpasswd-pbkdf2</command></term>
|
---|
[4ae4324] | 205 | <listitem>
|
---|
[9d42ad9] | 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>
|
---|
[4ae4324] | 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[9d42ad9] | 214 | <varlistentry id="grub-mkrelpath">
|
---|
| 215 | <term><command>grub-mkrelpath</command></term>
|
---|
[4ae4324] | 216 | <listitem>
|
---|
[9d42ad9] | 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>
|
---|
[4ae4324] | 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
[9d42ad9] | 224 | <varlistentry id="grub-mkrescue">
|
---|
| 225 | <term><command>grub-mkrescue</command></term>
|
---|
[8bc46a5] | 226 | <listitem>
|
---|
[501f1f24] | 227 | <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
|
---|
[9d42ad9] | 228 | <indexterm zone="ch-system-grub grub-mkrescue">
|
---|
| 229 | <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
|
---|
[8bc46a5] | 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
[6d53efc] | 234 | <varlistentry id="grub-mkstandalone">
|
---|
| 235 | <term><command>grub-mkstandalone</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>Generates a standalone image</para>
|
---|
| 238 | <indexterm zone="ch-system-grub grub-mkstandalone">
|
---|
| 239 | <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="grub-ofpathname">
|
---|
| 245 | <term><command>grub-ofpathname</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>Is a helper program that prints the path of a GRUB device</para>
|
---|
| 248 | <indexterm zone="ch-system-grub grub-ofpathname">
|
---|
| 249 | <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
[f9bcaec] | 254 | <varlistentry id="grub-probe">
|
---|
| 255 | <term><command>grub-probe</command></term>
|
---|
[4ae4324] | 256 | <listitem>
|
---|
[f9bcaec] | 257 | <para>Probe device information for a given path or device</para>
|
---|
| 258 | <indexterm zone="ch-system-grub grub-probe">
|
---|
| 259 | <primary sortas="b-grub-probe">grub-probe</primary>
|
---|
[4ae4324] | 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
[9d42ad9] | 264 | <varlistentry id="grub-reboot">
|
---|
| 265 | <term><command>grub-reboot</command></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>Sets the default boot entry for GRUB for the next boot only</para>
|
---|
| 268 | <indexterm zone="ch-system-grub grub-reboot">
|
---|
| 269 | <primary sortas="b-grub-reboot">grub-reboot</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="grub-script-check">
|
---|
| 275 | <term><command>grub-script-check</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>Checks GRUB configuration script for syntax errors</para>
|
---|
| 278 | <indexterm zone="ch-system-grub grub-script-check">
|
---|
| 279 | <primary sortas="b-grub-script-check">grub-script-check</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="grub-set-default">
|
---|
| 285 | <term><command>grub-set-default</command></term>
|
---|
| 286 | <listitem>
|
---|
| 287 | <para>Sets the default boot entry for GRUB</para>
|
---|
| 288 | <indexterm zone="ch-system-grub grub-set-default">
|
---|
| 289 | <primary sortas="b-grub-set-default">grub-set-default</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
[6d53efc] | 294 | <varlistentry id="grub-sparc64-setup">
|
---|
| 295 | <term><command>grub-sparc64-setup</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para>Is a helper program for grub-setup</para>
|
---|
| 298 | <indexterm zone="ch-system-grub grub-sparc64-setup">
|
---|
| 299 | <primary sortas="b-grub-sparc64-setup">grub-setup</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
[4ae4324] | 304 | </variablelist>
|
---|
| 305 |
|
---|
| 306 | </sect2>
|
---|
[673b0d8] | 307 |
|
---|
| 308 | </sect1>
|
---|