source: chapter06/grub.xml@ e4bf4c7

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 12.2 12.2-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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since e4bf4c7 was 9dfc02f, checked in by Zack Winkles <winkie@…>, 20 years ago

Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch

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

  • Property mode set to 100644
File size: 3.6 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">
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<para>The Grub package contains the GRand Unified Bootloader.</para>
13
14<screen>&buildtime; 0.2 SBU
15&diskspace; 10 MB</screen>
16
17<para>Grub installation depends on: Bash, Binutils, Coreutils, Diffutils,
18GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
19
20
21
22<sect2>
23<title>Installation of Grub</title>
24
25<para>This package is known to behave badly when you have changed its default
26optimization flags (including the -march and -mcpu options). Therefore, if you
27have defined any environment variables that override default optimizations,
28such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
29Grub.</para>
30
31<para>First prepare Grub for compilation:</para>
32
33<screen><userinput>./configure --prefix=/usr</userinput></screen>
34
35<para>A few of the files comprising Grub have issues with optimizations done
36by GCC 3.4. Compile these few files with known-good optimizations:</para>
37
38<screen><userinput>make -C stage2 STAGE2_CFLAGS=-O2 \
39 pre_stage2_exec-builtins.o pre_stage2_exec-serial.o</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"><title>Contents of Grub</title>
68
69<para><emphasis>Installed programs</emphasis>: grub, grub-install,
70grub-md5-crypt, grub-terminfo and mbchk</para>
71
72</sect2>
73
74<sect2><title>Short descriptions</title>
75
76<indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
77<para id="grub"><command>grub</command> is the GRand Unified Bootloader's command
78shell.</para>
79
80<indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
81<para id="grub-install"><command>grub-install</command> installs GRUB on the given device.</para>
82
83<indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
84<para id="grub-md5-crypt"><command>grub-md5-crypt</command> encrypts a password in MD5
85format.</para>
86
87<indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
88<para id="grub-terminfo"><command>grub-terminfo</command> generates a terminfo command from a
89terminfo name. It can be used if you have an uncommon terminal.</para>
90
91<indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
92<para id="mbchk"><command>mbchk</command> checks the format of a multi-boot kernel.</para>
93
94</sect2>
95
96
97</sect1>
Note: See TracBrowser for help on using the repository browser.