source: chapter06/grub.xml@ 522b09f

Last change on this file since 522b09f was a8f36125, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (all) Removed all references to the DocBook DTD
  • (docbook.rng) Added the DocBook "Gin" schema
  • (Makefile) Updated with new validation command
  • (prologue/*) Validation fixes

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

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[a8f36125]2<!DOCTYPE sect1 [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
[673b0d8]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>
[955533b]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The Grub package contains the GRand Unified Bootloader.</para>
14
[a001133]15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
19</segmentedlist>
[673b0d8]20
[a001133]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>
[955533b]27
[a001133]28<sect2 role="installation">
[73aedd1d]29<title>Installation of Grub</title>
30
31<para>This package is known to behave badly when you have changed its default
[ef57e3b]32optimization flags (including the <parameter>-march</parameter> and
33<parameter>-mcpu</parameter> options). Therefore, if you
[73aedd1d]34have defined any environment variables that override default optimizations,
[673b0d8]35such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
[73aedd1d]36Grub.</para>
37
[0fa9275]38<para>Prepare Grub for compilation:</para>
[9dfc02f]39
[0fa9275]40<screen><userinput>./configure --prefix=/usr</userinput></screen>
[9dfc02f]41
42<para>Now compile the rest of the package:</para>
[73aedd1d]43
44<screen><userinput>make</userinput></screen>
45
[9dfc02f]46<para>To test the results, issue:
47<userinput>make check</userinput>.</para>
48
[03ddc79]49<para>Note that the test results will always give the error
50 <quote>ufs2_stage1_5 is too big</quote>. This is due to a compiler issue,
51 but can be ignored unless you plan to boot from a UFS partition, normally only
52 used by Sun workstations.
53</para>
54
[673b0d8]55<para>Now install it:</para>
[73aedd1d]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 your hardware.</para>
63
64<para>The <filename class="directory">i386-pc</filename> directory also
65contains a number of <filename>*stage1_5</filename> files, different ones
[ab3b93b]66for different file systems. Have a look at the ones available and copy the
[73aedd1d]67appropriate ones to the <filename class="directory">/boot/grub</filename>
68directory. Most people will copy the <filename>e2fs_stage1_5</filename>
69and/or <filename>reiserfs_stage1_5</filename> files.</para>
70
71</sect2>
[955533b]72
[5888299]73
[c6cb3aa]74<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
[673b0d8]75
[c6cb3aa]76<segmentedlist>
77<segtitle>Installed programs</segtitle>
78<seglistitem><seg>grub, grub-install,
79grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
80</segmentedlist>
[673b0d8]81
[c6cb3aa]82<variablelist><title>Short descriptions</title>
[673b0d8]83
[b8a819f]84<varlistentry id="grub">
85<term><command>grub</command></term>
[c6cb3aa]86<listitem>
[673b0d8]87<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
[c6cb3aa]88<para>is the GRand Unified Bootloader's command shell.</para>
89</listitem>
90</varlistentry>
[73aedd1d]91
[b8a819f]92<varlistentry id="grub-install">
93<term><command>grub-install</command></term>
[c6cb3aa]94<listitem>
[673b0d8]95<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
[c6cb3aa]96<para>installs GRUB on the given device.</para>
97</listitem>
98</varlistentry>
[673b0d8]99
[b8a819f]100<varlistentry id="grub-md5-crypt">
101<term><command>grub-md5-crypt</command></term>
[c6cb3aa]102<listitem>
[673b0d8]103<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
[c6cb3aa]104<para>encrypts a password in MD5 format.</para>
105</listitem>
106</varlistentry>
[673b0d8]107
[b8a819f]108<varlistentry id="grub-terminfo">
109<term><command>grub-terminfo</command></term>
[c6cb3aa]110<listitem>
[673b0d8]111<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
[c6cb3aa]112<para>generates a terminfo command from a
[673b0d8]113terminfo name. It can be used if you have an uncommon terminal.</para>
[c6cb3aa]114</listitem>
115</varlistentry>
[673b0d8]116
[b8a819f]117<varlistentry id="mbchk">
118<term><command>mbchk</command></term>
[c6cb3aa]119<listitem>
[673b0d8]120<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
[c6cb3aa]121<para>checks the format of a multi-boot kernel.</para>
122</listitem>
123</varlistentry>
124</variablelist>
[673b0d8]125
126</sect2>
127
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.