2003-09-11 22:35:35 +01:00
|
|
|
<sect1 id="ch06-grub">
|
|
|
|
<title>Installing Grub-&grub-version;</title>
|
|
|
|
<?dbhtml filename="grub.html" dir="chapter06"?>
|
|
|
|
|
|
|
|
<screen>Estimated build time: &grub-time;
|
|
|
|
Estimated required disk space: &grub-compsize;</screen>
|
|
|
|
|
|
|
|
&aa-grub-shortdesc;
|
2003-11-15 16:07:18 +00:00
|
|
|
&aa-grub-dep;
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<sect2><title> </title><para> </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>
|
|
|
|
|
2003-11-03 22:47:39 +00:00
|
|
|
<para>First fix a compilation problem with GCC-&gcc-version;:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2003-11-21 03:39:20 +00:00
|
|
|
<screen><userinput>sed -i 's/2 long/2/' stage2/fsys_reiserfs.c</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2003-11-03 22:47:39 +00:00
|
|
|
<para>Now prepare Grub for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<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>
|
2003-09-11 22:35:35 +01:00
|
|
|
|
|
|
|
</sect1>
|
2003-11-01 22:31:50 +00:00
|
|
|
|