source: chapter06/grub.xml@ 90bfa70

Last change on this file since 90bfa70 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 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 section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-grub" xreflabel="Grub" role="wrap">
8<title>Grub-&grub-version;</title>
9<?dbhtml filename="grub.html"?>
10
11<indexterm zone="ch-system-grub"><primary sortas="a-Grub">Grub</primary></indexterm>
12
13<section role="package"><title/>
14<para>The Grub package contains the GRand Unified Bootloader.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>Grub installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
26</segmentedlist>
27</section>
28
29<section role="installation">
30<title>Installation of Grub</title>
31
32<para>This package is known to behave badly when you have changed its default
33optimization flags (including the <parameter>-march</parameter> and
34<parameter>-mcpu</parameter> options). Therefore, if you
35have defined any environment variables that override default optimizations,
36such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
37Grub.</para>
38
39<para>Prepare Grub for compilation:</para>
40
41<screen><userinput>./configure --prefix=/usr</userinput></screen>
42
43<para>Now compile the rest of the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
47<para>To test the results, issue:
48<userinput>make check</userinput>.</para>
49
50<para>Note that the test results will always give the error
51 <quote>ufs2_stage1_5 is too big</quote>. This is due to a compiler issue,
52 but can be ignored unless you plan to boot from a UFS partition, normally only
53 used by Sun workstations.
54</para>
55
56<para>Now install it:</para>
57
58<screen><userinput>make install
59mkdir /boot/grub
60cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
61
62<para>Replace <filename class="directory">i386-pc</filename> with whatever
63directory is appropriate for your hardware.</para>
64
65<para>The <filename class="directory">i386-pc</filename> directory also
66contains a number of <filename>*stage1_5</filename> files, different ones
67for different file systems. Have a look at the ones available and copy the
68appropriate ones to the <filename class="directory">/boot/grub</filename>
69directory. Most people will copy the <filename>e2fs_stage1_5</filename>
70and/or <filename>reiserfs_stage1_5</filename> files.</para>
71
72</section>
73
74
75<section xml:id="contents-grub" role="content"><title>Contents of Grub</title>
76
77<segmentedlist>
78<segtitle>Installed programs</segtitle>
79<seglistitem><seg>grub, grub-install,
80grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
81</segmentedlist>
82
83<variablelist><title>Short descriptions</title>
84
85<varlistentry xml:id="grub">
86<term><command>grub</command></term>
87<listitem>
88<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
89<para>is the GRand Unified Bootloader's command shell.</para>
90</listitem>
91</varlistentry>
92
93<varlistentry xml:id="grub-install">
94<term><command>grub-install</command></term>
95<listitem>
96<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
97<para>installs GRUB on the given device.</para>
98</listitem>
99</varlistentry>
100
101<varlistentry xml:id="grub-md5-crypt">
102<term><command>grub-md5-crypt</command></term>
103<listitem>
104<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
105<para>encrypts a password in MD5 format.</para>
106</listitem>
107</varlistentry>
108
109<varlistentry xml:id="grub-terminfo">
110<term><command>grub-terminfo</command></term>
111<listitem>
112<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
113<para>generates a terminfo command from a
114terminfo name. It can be used if you have an uncommon terminal.</para>
115</listitem>
116</varlistentry>
117
118<varlistentry xml:id="mbchk">
119<term><command>mbchk</command></term>
120<listitem>
121<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
122<para>checks the format of a multi-boot kernel.</para>
123</listitem>
124</varlistentry>
125</variablelist>
126
127</section>
128
129
130</section>
Note: See TracBrowser for help on using the repository browser.