source: chapter06/grub.xml@ f54c6c0

6.0
Last change on this file since f54c6c0 was 0e9a9e2, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Fixed some tags and validation issues.

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

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[673b0d8]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]>
[752f4e5]6<sect1 id="ch-system-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/>
[ef13657]13<para>The Grub package contains the Grand Unified Bootloader.</para>
[5888299]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,
[69993f4]24GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
[a001133]25</segmentedlist>
26</sect2>
[955533b]27
[a001133]28<sect2 role="installation">
[73aedd1d]29<title>Installation of Grub</title>
30
[ef13657]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
[752f4e5]35as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
[24a08b9]36unset them when building Grub.</para>
[73aedd1d]37
[0fa9275]38<para>Prepare Grub for compilation:</para>
[9dfc02f]39
[0fa9275]40<screen><userinput>./configure --prefix=/usr</userinput></screen>
[9dfc02f]41
[ef13657]42<para>Compile 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
[ef13657]49<para>Install the package:</para>
[73aedd1d]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
[ef13657]56directory is appropriate for the hardware in use.</para>
[73aedd1d]57
[ef13657]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>
[73aedd1d]65
[0e9a9e2]66<beginpage/>
[73aedd1d]67</sect2>
[955533b]68
[5888299]69
[c6cb3aa]70<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
[673b0d8]71
[c6cb3aa]72<segmentedlist>
73<segtitle>Installed programs</segtitle>
74<seglistitem><seg>grub, grub-install,
[69993f4]75grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
[c6cb3aa]76</segmentedlist>
[673b0d8]77
[3ed279f]78<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
79<?dbfo list-presentation="list"?>
[673b0d8]80
[b8a819f]81<varlistentry id="grub">
82<term><command>grub</command></term>
[c6cb3aa]83<listitem>
[ef13657]84<para>the Grand Unified Bootloader's command shell.</para>
[3ed279f]85<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
[c6cb3aa]86</listitem>
87</varlistentry>
[73aedd1d]88
[b8a819f]89<varlistentry id="grub-install">
90<term><command>grub-install</command></term>
[c6cb3aa]91<listitem>
92<para>installs GRUB on the given device.</para>
[3ed279f]93<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
[c6cb3aa]94</listitem>
95</varlistentry>
[673b0d8]96
[b8a819f]97<varlistentry id="grub-md5-crypt">
98<term><command>grub-md5-crypt</command></term>
[c6cb3aa]99<listitem>
100<para>encrypts a password in MD5 format.</para>
[3ed279f]101<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
[c6cb3aa]102</listitem>
103</varlistentry>
[673b0d8]104
[b8a819f]105<varlistentry id="grub-terminfo">
106<term><command>grub-terminfo</command></term>
[c6cb3aa]107<listitem>
[ef13657]108<para>generates a terminfo command from a terminfo name. It can be
109employed if an unknown terminal is being used.</para>
[3ed279f]110<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
[c6cb3aa]111</listitem>
112</varlistentry>
[673b0d8]113
[b8a819f]114<varlistentry id="mbchk">
115<term><command>mbchk</command></term>
[c6cb3aa]116<listitem>
117<para>checks the format of a multi-boot kernel.</para>
[3ed279f]118<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
[c6cb3aa]119</listitem>
120</varlistentry>
121</variablelist>
[673b0d8]122
123</sect2>
124
125</sect1>
[ef13657]126
Note: See TracBrowser for help on using the repository browser.