source: chapter06/grub.xml@ 0b960a2

Last change on this file since 0b960a2 was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.3 KB
Line 
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" arch="x86">
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 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>&dependencies;</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
24GCC, 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
32optimization flags (including the <parameter>-march</parameter> and
33<parameter>-mcpu</parameter> options) are changed. If any environment
34variables that override default optimizations have been defined, such
35as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
36unset 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
51issue, but can be ignored unless you plan to boot from an UFS
52partition. The partitions are normally only used by Sun
53workstations.</para>
54
55<para>Install the package:</para>
56
57<screen><userinput>make install
58mkdir /boot/grub
59cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
60
61<para>Replace <filename class="directory">i386-pc</filename> with whatever
62directory is appropriate for the hardware in use.</para>
63
64<para>The <filename class="directory">i386-pc</filename> directory
65contains a number of <filename>*stage1_5</filename> files, different
66ones for different file systems. Review the files available and copy
67the appropriate ones to the <filename
68class="directory">/boot/grub</filename> directory. Most users will
69copy the <filename>e2fs_stage1_5</filename> and/or
70<filename>reiserfs_stage1_5</filename> files.</para>
71
72
73</sect2>
74
75
76<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
77
78<segmentedlist>
79<segtitle>Installed programs</segtitle>
80<seglistitem><seg>grub, grub-install,
81grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
82</segmentedlist>
83
84<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
85<?dbfo list-presentation="list"?>
86<?dbhtml list-presentation="table"?>
87
88<varlistentry id="grub">
89<term><command>grub</command></term>
90<listitem>
91<para>The Grand Unified Bootloader's command shell</para>
92<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
93</listitem>
94</varlistentry>
95
96<varlistentry id="grub-install">
97<term><command>grub-install</command></term>
98<listitem>
99<para>Installs GRUB on the given device</para>
100<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
101</listitem>
102</varlistentry>
103
104<varlistentry id="grub-md5-crypt">
105<term><command>grub-md5-crypt</command></term>
106<listitem>
107<para>Encrypts a password in MD5 format</para>
108<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
109</listitem>
110</varlistentry>
111
112<varlistentry id="grub-terminfo">
113<term><command>grub-terminfo</command></term>
114<listitem>
115<para>Generates a terminfo command from a terminfo name; it can be
116employed if an unknown terminal is being used</para>
117<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
118</listitem>
119</varlistentry>
120
121<varlistentry id="mbchk">
122<term><command>mbchk</command></term>
123<listitem>
124<para>Checks the format of a multi-boot kernel</para>
125<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
126</listitem>
127</varlistentry>
128</variablelist>
129
130</sect2>
131
132</sect1>
133
Note: See TracBrowser for help on using the repository browser.