[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-grub" role="wrap">
|
---|
[4122675] | 7 | <title>GRUB-&grub-version;</title>
|
---|
[673b0d8] | 8 | <?dbhtml filename="grub.html"?>
|
---|
| 9 |
|
---|
[4122675] | 10 | <indexterm zone="ch-system-grub"><primary sortas="a-Grub">GRUB</primary></indexterm>
|
---|
[955533b] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[4122675] | 13 | <para>The GRUB package contains the GRand Unified Bootloader.</para>
|
---|
[5888299] | 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
[eb6d9eb] | 18 | <seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem>
|
---|
[a001133] | 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[81fd230] | 21 | <segmentedlist>
|
---|
[45992ae] | 22 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
[a001133] | 26 | </sect2>
|
---|
[955533b] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[4122675] | 29 | <title>Installation of GRUB</title>
|
---|
[73aedd1d] | 30 |
|
---|
[81fd230] | 31 | <para>This package is known to have issues when its default
|
---|
| 32 | optimization flags (including the <parameter>-march</parameter> and
|
---|
| 33 | <parameter>-mcpu</parameter> options) are changed. If any environment
|
---|
| 34 | variables that override default optimizations have been defined, such
|
---|
| 35 | as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
|
---|
[4122675] | 36 | unset them when building GRUB.</para>
|
---|
[81fd230] | 37 |
|
---|
[4122675] | 38 | <para>Prepare GRUB for compilation:</para>
|
---|
[9dfc02f] | 39 |
|
---|
[0fa9275] | 40 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
[9dfc02f] | 41 |
|
---|
[81fd230] | 42 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 43 |
|
---|
| 44 | <screen><userinput>make</userinput></screen>
|
---|
| 45 |
|
---|
[9dfc02f] | 46 | <para>To test the results, issue:
|
---|
[2e02c35] | 47 | <userinput>make check</userinput>.</para>
|
---|
[81fd230] | 48 |
|
---|
| 49 | <para>Install the package:</para>
|
---|
[73aedd1d] | 50 |
|
---|
| 51 | <screen><userinput>make install
|
---|
[5998892] | 52 | mkdir -v /boot/grub
|
---|
| 53 | cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
---|
[73aedd1d] | 54 |
|
---|
[81fd230] | 55 | <para>Replace <filename class="directory">i386-pc</filename> with whatever
|
---|
| 56 | directory is appropriate for the hardware in use.</para>
|
---|
| 57 |
|
---|
[3f0c882] | 58 | <para>The <filename class="directory">i386-pc</filename> directory
|
---|
| 59 | contains a number of <filename>*stage1_5</filename> files, different
|
---|
| 60 | ones for different file systems. Review the files available and copy
|
---|
| 61 | the appropriate ones to the <filename
|
---|
| 62 | class="directory">/boot/grub</filename> directory. Most users will
|
---|
| 63 | copy the <filename>e2fs_stage1_5</filename> and/or
|
---|
| 64 | <filename>reiserfs_stage1_5</filename> files.</para>
|
---|
[73aedd1d] | 65 |
|
---|
| 66 | </sect2>
|
---|
[955533b] | 67 |
|
---|
[5888299] | 68 |
|
---|
[4122675] | 69 | <sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
|
---|
[673b0d8] | 70 |
|
---|
[81fd230] | 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 | <seglistitem><seg>grub, grub-install,
|
---|
| 74 | grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
|
---|
| 75 | </segmentedlist>
|
---|
[673b0d8] | 76 |
|
---|
[81fd230] | 77 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 78 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 79 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 80 |
|
---|
| 81 | <varlistentry id="grub">
|
---|
| 82 | <term><command>grub</command></term>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>The Grand Unified Bootloader's command shell</para>
|
---|
| 85 | <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
---|
| 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
| 88 |
|
---|
| 89 | <varlistentry id="grub-install">
|
---|
| 90 | <term><command>grub-install</command></term>
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>Installs GRUB on the given device</para>
|
---|
| 93 | <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="grub-md5-crypt">
|
---|
| 98 | <term><command>grub-md5-crypt</command></term>
|
---|
| 99 | <listitem>
|
---|
| 100 | <para>Encrypts a password in MD5 format</para>
|
---|
| 101 | <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="grub-terminfo">
|
---|
| 106 | <term><command>grub-terminfo</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Generates a terminfo command from a terminfo name; it can be
|
---|
| 109 | employed if an unknown terminal is being used</para>
|
---|
| 110 | <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
---|
| 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="mbchk">
|
---|
| 115 | <term><command>mbchk</command></term>
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Checks the format of a multi-boot kernel</para>
|
---|
| 118 | <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 | </variablelist>
|
---|
[673b0d8] | 122 |
|
---|
[81fd230] | 123 | </sect2>
|
---|
[673b0d8] | 124 |
|
---|
| 125 | </sect1>
|
---|
[81fd230] | 126 |
|
---|