grub-inst.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 to fix a compilation problem with GCC-3.3.1</para>
  10. <para><screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen></para>
  11. <para>Prepare Grub for compilation:</para>
  12. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  13. <para>Compile the package:</para>
  14. <para><screen><userinput>make</userinput></screen></para>
  15. <para>And install it:</para>
  16. <para><screen><userinput>make install
  17. mkdir /boot/grub
  18. cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para>
  19. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  20. directory is appropriate for your hardware.</para>
  21. <para>The <filename class="directory">i386-pc</filename> directory also
  22. contains a number of <filename>*stage1_5</filename> files, different ones
  23. for different filesystems. Have a look at the ones available and copy the
  24. appropriate ones to the <filename class="directory">/boot/grub</filename>
  25. directory. Most people will copy the <filename>e2fs_stage1_5</filename>
  26. and/or <filename>reiserfs_stage1_5</filename> files.</para>
  27. </sect2>