[955533b] | 1 | <sect1 id="ch06-grub">
|
---|
| 2 | <title>Installing Grub-&grub-version;</title>
|
---|
| 3 | <?dbhtml filename="grub.html" dir="chapter06"?>
|
---|
| 4 |
|
---|
| 5 | <screen>Estimated build time: &grub-time;
|
---|
| 6 | Estimated required disk space: &grub-compsize;</screen>
|
---|
| 7 |
|
---|
| 8 | &aa-grub-shortdesc;
|
---|
| 9 | &aa-grub-dep;
|
---|
[73aedd1d] | 10 |
|
---|
| 11 | <sect2><title> </title><para> </para></sect2>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>Installation of Grub</title>
|
---|
| 15 |
|
---|
| 16 | <para>This package is known to behave badly when you have changed its default
|
---|
| 17 | optimization flags (including the -march and -mcpu options). Therefore, if you
|
---|
| 18 | have defined any environment variables that override default optimizations,
|
---|
| 19 | such as CFLAGS and CXXFLAGS, we recommend unsetting them when building
|
---|
| 20 | Grub.</para>
|
---|
| 21 |
|
---|
[5763f675] | 22 | <para>First fix a compilation problem with GCC-&gcc-version;:</para>
|
---|
[73aedd1d] | 23 |
|
---|
| 24 | <screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen>
|
---|
| 25 |
|
---|
[5763f675] | 26 | <para>Now prepare Grub for compilation:</para>
|
---|
[73aedd1d] | 27 |
|
---|
| 28 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 29 |
|
---|
| 30 | <para>Compile the package:</para>
|
---|
| 31 |
|
---|
| 32 | <screen><userinput>make</userinput></screen>
|
---|
| 33 |
|
---|
| 34 | <para>And install it:</para>
|
---|
| 35 |
|
---|
| 36 | <screen><userinput>make install
|
---|
| 37 | mkdir /boot/grub
|
---|
| 38 | cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
|
---|
| 39 |
|
---|
| 40 | <para>Replace <filename class="directory">i386-pc</filename> with whatever
|
---|
| 41 | directory is appropriate for your hardware.</para>
|
---|
| 42 |
|
---|
| 43 | <para>The <filename class="directory">i386-pc</filename> directory also
|
---|
| 44 | contains a number of <filename>*stage1_5</filename> files, different ones
|
---|
| 45 | for different filesystems. Have a look at the ones available and copy the
|
---|
| 46 | appropriate ones to the <filename class="directory">/boot/grub</filename>
|
---|
| 47 | directory. Most people will copy the <filename>e2fs_stage1_5</filename>
|
---|
| 48 | and/or <filename>reiserfs_stage1_5</filename> files.</para>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
[955533b] | 51 |
|
---|
| 52 | </sect1>
|
---|
[73aedd1d] | 53 |
|
---|