source: chapter06/grub.xml@ 0bc8e6e

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.0 6.1 6.1.1 6.3 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 0bc8e6e was eb443a3, checked in by Zack Winkles <winkie@…>, 20 years ago

Upgraded to GRUB 0.95

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

  • Property mode set to 100644
File size: 4.0 KB
Line 
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]>
6<sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
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>
11
12<sect2 role="package"><title/>
13<para>The Grub package contains the GRand Unified Bootloader.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
19</segmentedlist>
20
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>
27
28<sect2 role="installation">
29<title>Installation of Grub</title>
30
31<para>This package is known to behave badly when you have changed its default
32optimization flags (including the -march and -mcpu options). Therefore, if you
33have defined any environment variables that override default optimizations,
34such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
35Grub.</para>
36
37<para>Prepare Grub for compilation:</para>
38
39<screen><userinput>./configure --prefix=/usr</userinput></screen>
40
41<para>Now compile the rest of the package:</para>
42
43<screen><userinput>make</userinput></screen>
44
45<para>To test the results, issue:
46<userinput>make check</userinput>.</para>
47
48<para>Now install it:</para>
49
50<screen><userinput>make install
51mkdir /boot/grub
52cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
53
54<para>Replace <filename class="directory">i386-pc</filename> with whatever
55directory is appropriate for your hardware.</para>
56
57<para>The <filename class="directory">i386-pc</filename> directory also
58contains a number of <filename>*stage1_5</filename> files, different ones
59for different file systems. Have a look at the ones available and copy the
60appropriate ones to the <filename class="directory">/boot/grub</filename>
61directory. Most people will copy the <filename>e2fs_stage1_5</filename>
62and/or <filename>reiserfs_stage1_5</filename> files.</para>
63
64</sect2>
65
66
67<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
68
69<segmentedlist>
70<segtitle>Installed programs</segtitle>
71<seglistitem><seg>grub, grub-install,
72grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
73</segmentedlist>
74
75<variablelist><title>Short descriptions</title>
76
77<varlistentry id="grub">
78<term><command>grub</command></term>
79<listitem>
80<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
81<para>is the GRand Unified Bootloader's command shell.</para>
82</listitem>
83</varlistentry>
84
85<varlistentry id="grub-install">
86<term><command>grub-install</command></term>
87<listitem>
88<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
89<para>installs GRUB on the given device.</para>
90</listitem>
91</varlistentry>
92
93<varlistentry id="grub-md5-crypt">
94<term><command>grub-md5-crypt</command></term>
95<listitem>
96<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
97<para>encrypts a password in MD5 format.</para>
98</listitem>
99</varlistentry>
100
101<varlistentry id="grub-terminfo">
102<term><command>grub-terminfo</command></term>
103<listitem>
104<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
105<para>generates a terminfo command from a
106terminfo name. It can be used if you have an uncommon terminal.</para>
107</listitem>
108</varlistentry>
109
110<varlistentry id="mbchk">
111<term><command>mbchk</command></term>
112<listitem>
113<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
114<para>checks the format of a multi-boot kernel.</para>
115</listitem>
116</varlistentry>
117</variablelist>
118
119</sect2>
120
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.