grub.xml 1.7 KB

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