grub-inst.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Grub</title>
  4. <para>This package is known to behave badly when you have changed its default
  5. optimization flags (including the -march and -mcpu options). Therefore, if you
  6. have defined any environment variables that override default optimizations,
  7. such as CFLAGS and CXXFLAGS, we recommend unsetting them when building
  8. Grub.</para>
  9. <para>Grub needs a patch applied that fixes a compile problem with
  10. GCC-3.3.1:</para>
  11. <para><screen><userinput>patch -Np1 -i ../grub-&grub-patch-version;.patch</userinput></screen></para>
  12. <para>Prepare Grub for compilation:</para>
  13. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  14. <para>Compile the package:</para>
  15. <para><screen><userinput>make</userinput></screen></para>
  16. <para>And install it:</para>
  17. <para><screen><userinput>make install
  18. mkdir /boot/grub
  19. cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para>
  20. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  21. directory is appropriate for your hardware.</para>
  22. <para>The <filename class="directory">i386-pc</filename> directory also
  23. contains a number of <filename>*stage1_5</filename> files, different ones
  24. for different filesystems. Have a look at the ones available and copy the
  25. appropriate ones to the <filename class="directory">/boot/grub</filename>
  26. directory. Most people will copy the <filename>e2fs_stage1_5</filename>
  27. and/or <filename>reiserfs_stage1_5</filename> files.</para>
  28. </sect2>