1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-grub" role="wrap">
|
---|
7 | <title>GRUB-&grub-version;</title>
|
---|
8 | <?dbhtml filename="grub.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-grub"><primary sortas="a-Grub">GRUB</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The GRUB package contains the GRand Unified Bootloader.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>&dependencies;</segtitle>
|
---|
23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
24 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of GRUB</title>
|
---|
30 |
|
---|
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>,
|
---|
36 | unset them when building GRUB.</para>
|
---|
37 |
|
---|
38 | <para>Prepare GRUB for compilation:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
41 |
|
---|
42 | <para>Compile the package:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>make</userinput></screen>
|
---|
45 |
|
---|
46 | <para>To test the results, issue:
|
---|
47 | <userinput>make check</userinput>.</para>
|
---|
48 |
|
---|
49 | <para>Note that the test results will always show the error
|
---|
50 | <quote>ufs2_stage1_5 is too big.</quote> This is due to a compiler
|
---|
51 | issue, but can be ignored unless you plan to boot from an UFS
|
---|
52 | partition. The partitions are normally only used by Sun
|
---|
53 | workstations.</para>
|
---|
54 |
|
---|
55 | <para>Install the package:</para>
|
---|
56 |
|
---|
57 | <screen><userinput>make install
|
---|
58 | mkdir /boot/grub
|
---|
59 | cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
---|
60 |
|
---|
61 | <para>Replace <filename class="directory">i386-pc</filename> with whatever
|
---|
62 | directory is appropriate for the hardware in use.</para>
|
---|
63 |
|
---|
64 | <para>The <filename class="directory">i386-pc</filename> directory
|
---|
65 | contains a number of <filename>*stage1_5</filename> files, different
|
---|
66 | ones for different file systems. Review the files available and copy
|
---|
67 | the appropriate ones to the <filename
|
---|
68 | class="directory">/boot/grub</filename> directory. Most users will
|
---|
69 | copy the <filename>e2fs_stage1_5</filename> and/or
|
---|
70 | <filename>reiserfs_stage1_5</filename> files.</para>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 |
|
---|
75 | <sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
|
---|
76 |
|
---|
77 | <segmentedlist>
|
---|
78 | <segtitle>Installed programs</segtitle>
|
---|
79 | <seglistitem><seg>grub, grub-install,
|
---|
80 | grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
|
---|
81 | </segmentedlist>
|
---|
82 |
|
---|
83 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
84 | <?dbfo list-presentation="list"?>
|
---|
85 | <?dbhtml list-presentation="table"?>
|
---|
86 |
|
---|
87 | <varlistentry id="grub">
|
---|
88 | <term><command>grub</command></term>
|
---|
89 | <listitem>
|
---|
90 | <para>The Grand Unified Bootloader's command shell</para>
|
---|
91 | <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
|
---|
92 | </listitem>
|
---|
93 | </varlistentry>
|
---|
94 |
|
---|
95 | <varlistentry id="grub-install">
|
---|
96 | <term><command>grub-install</command></term>
|
---|
97 | <listitem>
|
---|
98 | <para>Installs GRUB on the given device</para>
|
---|
99 | <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
|
---|
100 | </listitem>
|
---|
101 | </varlistentry>
|
---|
102 |
|
---|
103 | <varlistentry id="grub-md5-crypt">
|
---|
104 | <term><command>grub-md5-crypt</command></term>
|
---|
105 | <listitem>
|
---|
106 | <para>Encrypts a password in MD5 format</para>
|
---|
107 | <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
|
---|
108 | </listitem>
|
---|
109 | </varlistentry>
|
---|
110 |
|
---|
111 | <varlistentry id="grub-terminfo">
|
---|
112 | <term><command>grub-terminfo</command></term>
|
---|
113 | <listitem>
|
---|
114 | <para>Generates a terminfo command from a terminfo name; it can be
|
---|
115 | employed if an unknown terminal is being used</para>
|
---|
116 | <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
|
---|
117 | </listitem>
|
---|
118 | </varlistentry>
|
---|
119 |
|
---|
120 | <varlistentry id="mbchk">
|
---|
121 | <term><command>mbchk</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>Checks the format of a multi-boot kernel</para>
|
---|
124 | <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
|
---|
125 | </listitem>
|
---|
126 | </varlistentry>
|
---|
127 | </variablelist>
|
---|
128 |
|
---|
129 | </sect2>
|
---|
130 |
|
---|
131 | </sect1>
|
---|
132 |
|
---|