source: chapter06/grub.xml@ 84988c0

6.0
Last change on this file since 84988c0 was ef57e3b, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Amplied the Index entries for Hotplug and Linux-Libc-Headers.
Tags corrections.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3811 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-grub" xreflabel="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 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>Grub installation depends on</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
24GCC, Glibc, Grep, Make, Ncurses, 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 behave badly when you have changed its default
32optimization flags (including the <parameter>-march</parameter> and
33<parameter>-mcpu</parameter> options). Therefore, if you
34have defined any environment variables that override default optimizations,
35such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
36Grub.</para>
37
38<para>Prepare Grub for compilation:</para>
39
40<screen><userinput>./configure --prefix=/usr</userinput></screen>
41
42<para>Now compile the rest of 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>Now install it:</para>
50
51<screen><userinput>make install
52mkdir /boot/grub
53cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
54
55<para>Replace <filename class="directory">i386-pc</filename> with whatever
56directory is appropriate for your hardware.</para>
57
58<para>The <filename class="directory">i386-pc</filename> directory also
59contains a number of <filename>*stage1_5</filename> files, different ones
60for different file systems. Have a look at the ones available and copy the
61appropriate ones to the <filename class="directory">/boot/grub</filename>
62directory. Most people will copy the <filename>e2fs_stage1_5</filename>
63and/or <filename>reiserfs_stage1_5</filename> files.</para>
64
65</sect2>
66
67
68<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
69
70<segmentedlist>
71<segtitle>Installed programs</segtitle>
72<seglistitem><seg>grub, grub-install,
73grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
74</segmentedlist>
75
76<variablelist><title>Short descriptions</title>
77
78<varlistentry id="grub">
79<term><command>grub</command></term>
80<listitem>
81<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
82<para>is the GRand Unified Bootloader's command shell.</para>
83</listitem>
84</varlistentry>
85
86<varlistentry id="grub-install">
87<term><command>grub-install</command></term>
88<listitem>
89<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
90<para>installs GRUB on the given device.</para>
91</listitem>
92</varlistentry>
93
94<varlistentry id="grub-md5-crypt">
95<term><command>grub-md5-crypt</command></term>
96<listitem>
97<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
98<para>encrypts a password in MD5 format.</para>
99</listitem>
100</varlistentry>
101
102<varlistentry id="grub-terminfo">
103<term><command>grub-terminfo</command></term>
104<listitem>
105<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
106<para>generates a terminfo command from a
107terminfo name. It can be used if you have an uncommon terminal.</para>
108</listitem>
109</varlistentry>
110
111<varlistentry id="mbchk">
112<term><command>mbchk</command></term>
113<listitem>
114<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
115<para>checks the format of a multi-boot kernel.</para>
116</listitem>
117</varlistentry>
118</variablelist>
119
120</sect2>
121
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.