source: chapter06/grub.xml@ b6f76d7

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b6f76d7 was 0445a3d, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added remap attributes to userinput tags in packages pages.

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

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[4ae4324]7
[81fd230]8<sect1 id="ch-system-grub" role="wrap">
[4ae4324]9 <?dbhtml filename="grub.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>grub</productname>
13 <productnumber>&grub-version;</productnumber>
14 <address>&grub-url;</address>
15 </sect1info>
16
[4ae4324]17 <title>GRUB-&grub-version;</title>
18
19 <indexterm zone="ch-system-grub">
20 <primary sortas="a-Grub">GRUB</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[673b0d8]25
[4ae4324]26 <para>The GRUB package contains the GRand Unified Bootloader.</para>
[955533b]27
[4ae4324]28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
[5888299]31
[4ae4324]32 <seglistitem>
[e4a5635]33 <seg>&grub-ch6-sbu;</seg>
34 <seg>&grub-ch6-du;</seg>
[4ae4324]35 </seglistitem>
36 </segmentedlist>
[673b0d8]37
[4ae4324]38 </sect2>
[81fd230]39
[4ae4324]40 <sect2 role="installation">
41 <title>Installation of GRUB</title>
42
43 <para>This package is known to have issues when its default
44 optimization flags (including the <parameter>-march</parameter> and
45 <parameter>-mcpu</parameter> options) are changed. If any environment
46 variables that override default optimizations have been defined, such
47 as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
48 unset them when building GRUB.</para>
49
[e1060de]50 <para>Start by applying the following patch to allow for better drive
[c226182]51 detection, fix some GCC 4.x issues, and provide better SATA support
52 for some disk controllers:</para>
[e1060de]53
[0445a3d]54<screen><userinput remap="pre">patch -Np1 -i ../&grub-geometry-patch;</userinput></screen>
[e1060de]55
[4ae4324]56 <para>Prepare GRUB for compilation:</para>
[9dfc02f]57
[0445a3d]58<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
[9dfc02f]59
[4ae4324]60 <para>Compile the package:</para>
[73aedd1d]61
[0445a3d]62<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]63
[0445a3d]64 <para>To test the results, issue:</para>
65
66<screen><userinput remap="test">make check</userinput></screen>
[81fd230]67
[4ae4324]68 <para>Install the package:</para>
[73aedd1d]69
[0445a3d]70<screen><userinput remap="install">make install
[5998892]71mkdir -v /boot/grub
72cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
[73aedd1d]73
[4ae4324]74 <para>Replace <filename class="directory">i386-pc</filename> with whatever
75 directory is appropriate for the hardware in use.</para>
76
77 <para>The <filename class="directory">i386-pc</filename> directory
78 contains a number of <filename>*stage1_5</filename> files, different
79 ones for different file systems. Review the files available and copy
80 the appropriate ones to the <filename
81 class="directory">/boot/grub</filename> directory. Most users will
82 copy the <filename>e2fs_stage1_5</filename> and/or
83 <filename>reiserfs_stage1_5</filename> files.</para>
84
85 </sect2>
86
87 <sect2 id="contents-gRUB" role="content">
88 <title>Contents of GRUB</title>
89
90 <segmentedlist>
91 <segtitle>Installed programs</segtitle>
92
93 <seglistitem>
[8bc46a5]94 <seg>grub, grub-install, grub-md5-crypt, grub-set-default,
95 grub-terminfo, and mbchk</seg>
[4ae4324]96 </seglistitem>
97 </segmentedlist>
98
99 <variablelist>
100 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
101 <?dbfo list-presentation="list"?>
102 <?dbhtml list-presentation="table"?>
103
104 <varlistentry id="grub">
105 <term><command>grub</command></term>
106 <listitem>
107 <para>The Grand Unified Bootloader's command shell</para>
108 <indexterm zone="ch-system-grub grub">
109 <primary sortas="b-grub">grub</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="grub-install">
115 <term><command>grub-install</command></term>
116 <listitem>
117 <para>Installs GRUB on the given device</para>
118 <indexterm zone="ch-system-grub grub-install">
119 <primary sortas="b-grub-install">grub-install</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="grub-md5-crypt">
125 <term><command>grub-md5-crypt</command></term>
126 <listitem>
127 <para>Encrypts a password in MD5 format</para>
128 <indexterm zone="ch-system-grub grub-md5-crypt">
129 <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
[8bc46a5]134 <varlistentry id="grub-set-default">
135 <term><command>grub-set-default</command></term>
136 <listitem>
137 <para>Sets the default boot entry for GRUB</para>
138 <indexterm zone="ch-system-grub grub-set-default">
139 <primary sortas="b-grub-set-default">grub-set-default</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
[4ae4324]144 <varlistentry id="grub-terminfo">
145 <term><command>grub-terminfo</command></term>
146 <listitem>
147 <para>Generates a terminfo command from a terminfo name; it can be
148 employed if an unknown terminal is being used</para>
149 <indexterm zone="ch-system-grub grub-terminfo">
150 <primary sortas="b-grub-terminfo">grub-terminfo</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="mbchk">
156 <term><command>mbchk</command></term>
157 <listitem>
158 <para>Checks the format of a multi-boot kernel</para>
159 <indexterm zone="ch-system-grub mbchk">
160 <primary sortas="b-mbchk">mbchk</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 </variablelist>
166
167 </sect2>
[673b0d8]168
169</sect1>
Note: See TracBrowser for help on using the repository browser.