grub.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-grub" role="wrap">
  9. <title>GRUB-&grub-version;</title>
  10. <?dbhtml filename="grub.html"?>
  11. <indexterm zone="ch-system-grub"><primary sortas="a-Grub">GRUB</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The GRUB package contains the GRand Unified Bootloader.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  22. GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of GRUB</title>
  27. <para>This package is known to have issues when its default
  28. optimization flags (including the <parameter>-march</parameter> and
  29. <parameter>-mcpu</parameter> options) are changed. If any environment
  30. variables that override default optimizations have been defined, such
  31. as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
  32. unset them when building GRUB.</para>
  33. <para>Prepare GRUB for compilation:</para>
  34. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>To test the results, issue:
  38. <userinput>make check</userinput>.</para>
  39. <para>Note that the test results will always show the error
  40. <quote>ufs2_stage1_5 is too big.</quote> This is due to a compiler
  41. issue, but can be ignored unless you plan to boot from an UFS
  42. partition. The partitions are normally only used by Sun
  43. workstations.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput>make install
  46. mkdir /boot/grub
  47. cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  48. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  49. directory is appropriate for the hardware in use.</para>
  50. <para>The <filename class="directory">i386-pc</filename> directory
  51. contains a number of <filename>*stage1_5</filename> files, different
  52. ones for different file systems. Review the files available and copy
  53. the appropriate ones to the <filename
  54. class="directory">/boot/grub</filename> directory. Most users will
  55. copy the <filename>e2fs_stage1_5</filename> and/or
  56. <filename>reiserfs_stage1_5</filename> files.</para>
  57. </sect2>
  58. <sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
  59. <segmentedlist>
  60. <segtitle>Installed programs</segtitle>
  61. <seglistitem><seg>grub, grub-install,
  62. grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
  63. </segmentedlist>
  64. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  65. <?dbfo list-presentation="list"?>
  66. <?dbhtml list-presentation="table"?>
  67. <varlistentry id="grub">
  68. <term><command>grub</command></term>
  69. <listitem>
  70. <para>The Grand Unified Bootloader's command shell</para>
  71. <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="grub-install">
  75. <term><command>grub-install</command></term>
  76. <listitem>
  77. <para>Installs GRUB on the given device</para>
  78. <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="grub-md5-crypt">
  82. <term><command>grub-md5-crypt</command></term>
  83. <listitem>
  84. <para>Encrypts a password in MD5 format</para>
  85. <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="grub-terminfo">
  89. <term><command>grub-terminfo</command></term>
  90. <listitem>
  91. <para>Generates a terminfo command from a terminfo name; it can be
  92. employed if an unknown terminal is being used</para>
  93. <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="mbchk">
  97. <term><command>mbchk</command></term>
  98. <listitem>
  99. <para>Checks the format of a multi-boot kernel</para>
  100. <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
  101. </listitem>
  102. </varlistentry>
  103. </variablelist>
  104. </sect2>
  105. </sect1>