mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-21 22:48:31 +00:00
37 lines
1.2 KiB
XML
37 lines
1.2 KiB
XML
|
<sect2><title> </title><para> </para></sect2>
|
||
|
|
||
|
<sect2>
|
||
|
<title>Installation of Grub</title>
|
||
|
|
||
|
<para>Grub needs a patch applied that fixes a compile problem with
|
||
|
GCC-3.3.1:</para>
|
||
|
|
||
|
<para><screen><userinput>patch -Np1 -i ../grub-&grub-patch-version;.patch</userinput></screen></para>
|
||
|
|
||
|
<para>Prepare Grub for compilation:</para>
|
||
|
|
||
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
||
|
|
||
|
<para>Compile the package:</para>
|
||
|
|
||
|
<para><screen><userinput>make</userinput></screen></para>
|
||
|
|
||
|
<para>And install it:</para>
|
||
|
|
||
|
<para><screen><userinput>make install
|
||
|
mkdir /boot/grub
|
||
|
cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para>
|
||
|
|
||
|
<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>
|
||
|
|