grub.xml 4.3 KB

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