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
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-grub" xreflabel="Grub" role="wrap">
[6a0e6f3]8<title>Grub-&grub-version;</title>
[673b0d8]9<?dbhtml filename="grub.html"?>
10
11<indexterm zone="ch-system-grub"><primary sortas="a-Grub">Grub</primary></indexterm>
[955533b]12
[6a0e6f3]13<section role="package"><title/>
[5888299]14<para>The Grub package contains the GRand Unified Bootloader.</para>
15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
20</segmentedlist>
[673b0d8]21
[a001133]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>
[1fe35e1]27</section>
[955533b]28
[1fe35e1]29<section role="installation">
[73aedd1d]30<title>Installation of Grub</title>
31
32<para>This package is known to behave badly when you have changed its default
[ef57e3b]33optimization flags (including the <parameter>-march</parameter> and
34<parameter>-mcpu</parameter> options). Therefore, if you
[73aedd1d]35have defined any environment variables that override default optimizations,
[673b0d8]36such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
[73aedd1d]37Grub.</para>
38
[0fa9275]39<para>Prepare Grub for compilation:</para>
[9dfc02f]40
[0fa9275]41<screen><userinput>./configure --prefix=/usr</userinput></screen>
[9dfc02f]42
43<para>Now compile the rest of the package:</para>
[73aedd1d]44
45<screen><userinput>make</userinput></screen>
46
[9dfc02f]47<para>To test the results, issue:
48<userinput>make check</userinput>.</para>
49
[03ddc79]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
[673b0d8]56<para>Now install it:</para>
[73aedd1d]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
[ab3b93b]67for different file systems. Have a look at the ones available and copy the
[73aedd1d]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
[1fe35e1]72</section>
[955533b]73
[5888299]74
[6a0e6f3]75<section xml:id="contents-grub" role="content"><title>Contents of Grub</title>
[673b0d8]76
[c6cb3aa]77<segmentedlist>
78<segtitle>Installed programs</segtitle>
79<seglistitem><seg>grub, grub-install,
80grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
81</segmentedlist>
[673b0d8]82
[c6cb3aa]83<variablelist><title>Short descriptions</title>
[673b0d8]84
[1fe35e1]85<varlistentry xml:id="grub">
[b8a819f]86<term><command>grub</command></term>
[c6cb3aa]87<listitem>
[673b0d8]88<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
[c6cb3aa]89<para>is the GRand Unified Bootloader's command shell.</para>
90</listitem>
91</varlistentry>
[73aedd1d]92
[1fe35e1]93<varlistentry xml:id="grub-install">
[b8a819f]94<term><command>grub-install</command></term>
[c6cb3aa]95<listitem>
[673b0d8]96<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
[c6cb3aa]97<para>installs GRUB on the given device.</para>
98</listitem>
99</varlistentry>
[673b0d8]100
[1fe35e1]101<varlistentry xml:id="grub-md5-crypt">
[b8a819f]102<term><command>grub-md5-crypt</command></term>
[c6cb3aa]103<listitem>
[673b0d8]104<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
[c6cb3aa]105<para>encrypts a password in MD5 format.</para>
106</listitem>
107</varlistentry>
[673b0d8]108
[1fe35e1]109<varlistentry xml:id="grub-terminfo">
[b8a819f]110<term><command>grub-terminfo</command></term>
[c6cb3aa]111<listitem>
[673b0d8]112<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
[c6cb3aa]113<para>generates a terminfo command from a
[673b0d8]114terminfo name. It can be used if you have an uncommon terminal.</para>
[c6cb3aa]115</listitem>
116</varlistentry>
[673b0d8]117
[1fe35e1]118<varlistentry xml:id="mbchk">
[b8a819f]119<term><command>mbchk</command></term>
[c6cb3aa]120<listitem>
[673b0d8]121<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
[c6cb3aa]122<para>checks the format of a multi-boot kernel.</para>
123</listitem>
124</varlistentry>
125</variablelist>
[673b0d8]126
[1fe35e1]127</section>
[673b0d8]128
129
[1fe35e1]130</section>
Note: See TracBrowser for help on using the repository browser.