grub.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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>sed -i '/ufs2/d' stage2/size_test &amp;&amp;
  39. make check</userinput>.</para>
  40. <para>The UFS test is known to fail due to a compiler issue. The failure
  41. prevents the rest of the tests from being run, so the <command>sed</command>
  42. command is used to avoid the failure. The UFS test failure can be ignored
  43. unless you plan to boot from a UFS partition. The partitions are normally only
  44. used by Sun workstations.</para>
  45. <para>Install the package:</para>
  46. <screen><userinput>make install
  47. mkdir /boot/grub
  48. cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  49. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  50. directory is appropriate for the hardware in use.</para>
  51. <para>The <filename class="directory">i386-pc</filename> directory
  52. contains a number of <filename>*stage1_5</filename> files, different
  53. ones for different file systems. Review the files available and copy
  54. the appropriate ones to the <filename
  55. class="directory">/boot/grub</filename> directory. Most users will
  56. copy the <filename>e2fs_stage1_5</filename> and/or
  57. <filename>reiserfs_stage1_5</filename> files.</para>
  58. </sect2>
  59. <sect2 id="contents-gRUB" role="content"><title>Contents of GRUB</title>
  60. <segmentedlist>
  61. <segtitle>Installed programs</segtitle>
  62. <seglistitem><seg>grub, grub-install,
  63. grub-md5-crypt, grub-terminfo, and mbchk</seg></seglistitem>
  64. </segmentedlist>
  65. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="grub">
  69. <term><command>grub</command></term>
  70. <listitem>
  71. <para>The Grand Unified Bootloader's command shell</para>
  72. <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="grub-install">
  76. <term><command>grub-install</command></term>
  77. <listitem>
  78. <para>Installs GRUB on the given device</para>
  79. <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="grub-md5-crypt">
  83. <term><command>grub-md5-crypt</command></term>
  84. <listitem>
  85. <para>Encrypts a password in MD5 format</para>
  86. <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="grub-terminfo">
  90. <term><command>grub-terminfo</command></term>
  91. <listitem>
  92. <para>Generates a terminfo command from a terminfo name; it can be
  93. employed if an unknown terminal is being used</para>
  94. <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="mbchk">
  98. <term><command>mbchk</command></term>
  99. <listitem>
  100. <para>Checks the format of a multi-boot kernel</para>
  101. <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </sect2>
  106. </sect1>