source: chapter06/grub.xml@ 67129a2b

6.0
Last change on this file since 67129a2b was 24a08b9, checked in by Gerard Beekmans <gerard@…>, 20 years ago

General edits. Added bash+readline display_wrap patches

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

  • Property mode set to 100644
File size: 4.1 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 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 <emphasis>CFLAGS</emphasis> and <emphasis>CXXFLAGS</emphasis>,
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>Install the package:</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 the hardware in use.</para>
57
58<para>The <filename class="directory">i386-pc</filename> directory
59contains a number of <filename>*stage1_5</filename> files, different
60ones for different file systems. Review the files available and copy
61the appropriate ones to the <filename
62class="directory">/boot/grub</filename> directory. Most users will
63copy the <filename>e2fs_stage1_5</filename> and/or
64<filename>reiserfs_stage1_5</filename> files.</para>
65
66</sect2>
67
68
69<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
70
71<segmentedlist>
72<segtitle>Installed programs</segtitle>
73<seglistitem><seg>grub, grub-install,
74grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
75</segmentedlist>
76
77<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
78<?dbfo list-presentation="list"?>
79
80<varlistentry id="grub">
81<term><command>grub</command></term>
82<listitem>
83<para>the Grand Unified Bootloader's command shell.</para>
84<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
85</listitem>
86</varlistentry>
87
88<varlistentry id="grub-install">
89<term><command>grub-install</command></term>
90<listitem>
91<para>installs GRUB on the given device.</para>
92<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
93</listitem>
94</varlistentry>
95
96<varlistentry id="grub-md5-crypt">
97<term><command>grub-md5-crypt</command></term>
98<listitem>
99<para>encrypts a password in MD5 format.</para>
100<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
101</listitem>
102</varlistentry>
103
104<varlistentry id="grub-terminfo">
105<term><command>grub-terminfo</command></term>
106<listitem>
107<para>generates a terminfo command from a terminfo name. It can be
108employed if an unknown terminal is being used.</para>
109<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
110</listitem>
111</varlistentry>
112
113<varlistentry id="mbchk">
114<term><command>mbchk</command></term>
115<listitem>
116<para>checks the format of a multi-boot kernel.</para>
117<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
118</listitem>
119</varlistentry>
120</variablelist>
121
122</sect2>
123
124</sect1>
125
Note: See TracBrowser for help on using the repository browser.