aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/grub.xml
diff options
context:
space:
mode:
authorAlex Gronenwoud <alex@linuxfromscratch.org>2003-11-01 22:31:50 +0000
committerAlex Gronenwoud <alex@linuxfromscratch.org>2003-11-01 22:31:50 +0000
commit73aedd1d35747ff2fad4ddf514dca810721a612a (patch)
treed05f8b503f210d7248c2b2abea9e5528fc04d90a /chapter06/grub.xml
parent0b400add2ba87352e955326bcb931e53864cc2ae (diff)
Merging caption and installation sections for all packages in chapters 5 and 6.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/grub.xml')
-rw-r--r--chapter06/grub.xml43
1 files changed, 42 insertions, 1 deletions
diff --git a/chapter06/grub.xml b/chapter06/grub.xml
index 1eadcb226..431715f8d 100644
--- a/chapter06/grub.xml
+++ b/chapter06/grub.xml
@@ -7,6 +7,47 @@ Estimated required disk space: &grub-compsize;</screen>
&aa-grub-shortdesc;
&aa-grub-dep;
-&c6-grub-inst;
+
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
+<sect2>
+<title>Installation of Grub</title>
+
+<para>This package is known to behave badly when you have changed its default
+optimization flags (including the -march and -mcpu options). Therefore, if you
+have defined any environment variables that override default optimizations,
+such as CFLAGS and CXXFLAGS, we recommend unsetting them when building
+Grub.</para>
+
+<para>Grub needs a patch to fix a compilation problem with GCC-&gcc-version;</para>
+
+<screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen>
+
+<para>Prepare Grub for compilation:</para>
+
+<screen><userinput>./configure --prefix=/usr</userinput></screen>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make</userinput></screen>
+
+<para>And install it:</para>
+
+<screen><userinput>make install
+mkdir /boot/grub
+cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
+
+<para>Replace <filename class="directory">i386-pc</filename> with whatever
+directory is appropriate for your hardware.</para>
+
+<para>The <filename class="directory">i386-pc</filename> directory also
+contains a number of <filename>*stage1_5</filename> files, different ones
+for different filesystems. Have a look at the ones available and copy the
+appropriate ones to the <filename class="directory">/boot/grub</filename>
+directory. Most people will copy the <filename>e2fs_stage1_5</filename>
+and/or <filename>reiserfs_stage1_5</filename> files.</para>
+
+</sect2>
</sect1>
+