source: BOOK/final-system/x86/grub.xml@ 8779a20

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8779a20 was 7dfa1a8, checked in by Jim Gifford <clfs@…>, 19 years ago

r665@server (orig r663): manuel | 2005-11-08 14:33:14 -0800
Removing SBUs and DUs. Chapter final-system, round 3.

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9<sect1 id="ch-system-grub" role="wrap">
10 <?dbhtml filename="grub.html"?>
11
12 <title>GRUB-&grub-version;</title>
13
14 <indexterm zone="ch-system-grub">
15 <primary sortas="a-GRUB">GRUB</primary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>The GRUB package contains the GRand Unified Bootloader.</para>
22
23 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
27 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
28 Make, Ncurses, and Sed</seg>
29 </seglistitem>
30 </segmentedlist>
31
32 </sect2>
33
34 <sect2 role="installation">
35 <title>Installation of GRUB</title>
36
37 <para os="a">This package is known to have issues when its default optimization
38 flags (including the <option>-march</option> and <option>-mcpu</option>
39 options) are changed. If any environment variables that override default
40 optimizations have been defined, such as <envar>CFLAGS</envar> and
41 <envar>CXXFLAGS</envar>, unset them when building GRUB.</para>
42
43 <para os="b">Prepare GRUB for compilation:</para>
44
45<screen><userinput>./configure --prefix=/usr</userinput></screen>
46
47 <para os="c">Compile the package:</para>
48
49<screen os="d"><userinput>make</userinput></screen>
50
51 <para os="e">To test the results, issue:
52 <userinput>sed -i '/ufs2/d' stage2/size_test &amp;&amp;
53 make check</userinput>.</para>
54
55 <para os="f">The UFS test is known to fail due to a compiler issue. The failure
56 prevents the rest of the tests from being run, so the <command>sed</command>
57 command is used to avoid the failure. The UFS test failure can be ignored
58 unless you plan to boot from a UFS partition. The partitions are normally
59 only used by Sun workstations.</para>
60
61 <para os="g">Install the package:</para>
62
63<screen os="h"><userinput>make install
64mkdir /boot/grub
65cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
66
67 <para os="i">Replace <filename class="directory">i386-pc</filename> with whatever
68 directory is appropriate for the hardware in use.</para>
69
70 <para os="j">The <filename class="directory">i386-pc</filename> directory
71 contains a number of <filename>*stage1_5</filename> files, different
72 ones for different file systems. Review the files available and copy
73 the appropriate ones to the <filename
74 class="directory">/boot/grub</filename> directory. Most users will
75 copy the <filename>e2fs_stage1_5</filename> and/or
76 <filename>reiserfs_stage1_5</filename> files.</para>
77
78 </sect2>
79
80 <sect2 id="contents-grub" role="content">
81 <title>Contents of GRUB</title>
82
83 <segmentedlist>
84 <segtitle>Installed programs</segtitle>
85
86 <seglistitem>
87 <seg>grub, grub-install, grub-md5-crypt, grub-terminfo, and mbchk</seg>
88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist>
92 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
93 <?dbfo list-presentation="list"?>
94 <?dbhtml list-presentation="table"?>
95
96 <varlistentry id="grub">
97 <term><command>grub</command></term>
98 <listitem>
99 <para>The Grand Unified Bootloader's command shell</para>
100 <indexterm zone="ch-system-grub grub">
101 <primary sortas="b-grub">grub</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="grub-install">
107 <term><command>grub-install</command></term>
108 <listitem>
109 <para>Installs GRUB on the given device</para>
110 <indexterm zone="ch-system-grub grub-install">
111 <primary sortas="b-grub-install">grub-install</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="grub-md5-crypt">
117 <term><command>grub-md5-crypt</command></term>
118 <listitem>
119 <para>Encrypts a password in MD5 format</para>
120 <indexterm zone="ch-system-grub grub-md5-crypt">
121 <primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="grub-terminfo">
127 <term><command>grub-terminfo</command></term>
128 <listitem>
129 <para>Generates a terminfo command from a terminfo name; it can be
130 employed if an unknown terminal is being used</para>
131 <indexterm zone="ch-system-grub grub-terminfo">
132 <primary sortas="b-grub-terminfo">grub-terminfo</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="mbchk">
138 <term><command>mbchk</command></term>
139 <listitem>
140 <para>Checks the format of a multi-boot kernel</para>
141 <indexterm zone="ch-system-grub mbchk">
142 <primary sortas="b-mbchk">mbchk</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 </variablelist>
148
149 </sect2>
150
151</sect1>
Note: See TracBrowser for help on using the repository browser.