grub.xml 4.1 KB

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