source: chapter06/grub.xml@ df8334f

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 df8334f was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

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

  • Property mode set to 100644
File size: 4.3 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]>
[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
32optimization flags (including the -march and -mcpu options). Therefore, if you
33have defined any environment variables that override default optimizations,
[673b0d8]34such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
[73aedd1d]35Grub.</para>
36
[673b0d8]37<para>First prepare Grub for compilation:</para>
[73aedd1d]38
39<screen><userinput>./configure --prefix=/usr</userinput></screen>
40
[9dfc02f]41<para>A few of the files comprising Grub have issues with optimizations done
42by GCC 3.4. Compile these few files with known-good optimizations:</para>
43
44<screen><userinput>make -C stage2 STAGE2_CFLAGS=-O2 \
45 pre_stage2_exec-builtins.o pre_stage2_exec-serial.o</userinput></screen>
46
47<para>Now compile the rest of the package:</para>
[73aedd1d]48
49<screen><userinput>make</userinput></screen>
50
[9dfc02f]51<para>To test the results, issue:
52<userinput>make check</userinput>.</para>
53
[673b0d8]54<para>Now install it:</para>
[73aedd1d]55
56<screen><userinput>make install
57mkdir /boot/grub
58cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
59
60<para>Replace <filename class="directory">i386-pc</filename> with whatever
61directory is appropriate for your hardware.</para>
62
63<para>The <filename class="directory">i386-pc</filename> directory also
64contains a number of <filename>*stage1_5</filename> files, different ones
[ab3b93b]65for different file systems. Have a look at the ones available and copy the
[73aedd1d]66appropriate ones to the <filename class="directory">/boot/grub</filename>
67directory. Most people will copy the <filename>e2fs_stage1_5</filename>
68and/or <filename>reiserfs_stage1_5</filename> files.</para>
69
70</sect2>
[955533b]71
[5888299]72
[c6cb3aa]73<sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
[673b0d8]74
[c6cb3aa]75<segmentedlist>
76<segtitle>Installed programs</segtitle>
77<seglistitem><seg>grub, grub-install,
78grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
79</segmentedlist>
[673b0d8]80
[c6cb3aa]81<variablelist><title>Short descriptions</title>
[673b0d8]82
[c6cb3aa]83<varlistentry>
84<term id="grub"><command>grub</command></term>
85<listitem>
[673b0d8]86<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
[c6cb3aa]87<para>is the GRand Unified Bootloader's command shell.</para>
88</listitem>
89</varlistentry>
[73aedd1d]90
[c6cb3aa]91<varlistentry>
92<term id="grub-install"><command>grub-install</command></term>
93<listitem>
[673b0d8]94<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
[c6cb3aa]95<para>installs GRUB on the given device.</para>
96</listitem>
97</varlistentry>
[673b0d8]98
[c6cb3aa]99<varlistentry>
100<term id="grub-md5-crypt"><command>grub-md5-crypt</command></term>
101<listitem>
[673b0d8]102<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
[c6cb3aa]103<para>encrypts a password in MD5 format.</para>
104</listitem>
105</varlistentry>
[673b0d8]106
[c6cb3aa]107<varlistentry>
108<term id="grub-terminfo"><command>grub-terminfo</command></term>
109<listitem>
[673b0d8]110<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
[c6cb3aa]111<para>generates a terminfo command from a
[673b0d8]112terminfo name. It can be used if you have an uncommon terminal.</para>
[c6cb3aa]113</listitem>
114</varlistentry>
[673b0d8]115
[c6cb3aa]116<varlistentry>
117<term id="mbchk"><command>mbchk</command></term>
118<listitem>
[673b0d8]119<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
[c6cb3aa]120<para>checks the format of a multi-boot kernel.</para>
121</listitem>
122</varlistentry>
123</variablelist>
[673b0d8]124
125</sect2>
126
127
128</sect1>
Note: See TracBrowser for help on using the repository browser.