grub.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-grub" role="wrap">
  8. <?dbhtml filename="grub.html"?>
  9. <sect1info condition="script">
  10. <productname>grub</productname>
  11. <productnumber>&grub-version;</productnumber>
  12. <address>&grub-url;</address>
  13. </sect1info>
  14. <title>GRUB-&grub-version;</title>
  15. <indexterm zone="ch-system-grub">
  16. <primary sortas="a-Grub">GRUB</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The GRUB package contains the GRand Unified Bootloader.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&grub-ch6-sbu;</seg>
  26. <seg>&grub-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of GRUB</title>
  32. <para>Prepare GRUB for compilation:</para>
  33. <screen><userinput remap="configure">mkdir build
  34. cd build
  35. ../configure --prefix=/usr \
  36. --sysconfdir=/etc \
  37. --disable-grub-emu \
  38. --disable-grub-emu-usb \
  39. --disable-grub-fstest \
  40. --disable-efiemu</userinput></screen>
  41. <para>Using a separate build directory keeps the 2400 generated
  42. files out of the main directory and is recommeded by the developers.
  43. The --disable switches just minimize what is built by disabling
  44. features and testing programs not really needed for LFS.</para>
  45. <para>Compile the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>This package does not come with a test suite.</para>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. <para>Using GRUB to make your LFS system bootable will be discussed in
  51. <xref linkend="ch-bootable-grub"/>.</para>
  52. </sect2>
  53. <sect2 id="contents-gRUB" role="content">
  54. <title>Contents of GRUB</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <segtitle>Installed directories</segtitle>
  58. <seglistitem>
  59. <seg>grub-editenv, grub-mkelfimage, grub-mkfont, grub-mkimage,
  60. grub-mkrescue, grub-dumpbios, grub-install, grub-mkconfig,
  61. grub-mkdevicemap, grub-probe, grub-setup</seg>
  62. <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /usr/inclue/grub</seg>
  63. </seglistitem>
  64. </segmentedlist>
  65. <variablelist>
  66. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  67. <?dbfo list-presentation="list"?>
  68. <?dbhtml list-presentation="table"?>
  69. <varlistentry id="grub-editenv">
  70. <term><command>grub-editenv</command></term>
  71. <listitem>
  72. <para>A tool to edit the environment block</para>
  73. <indexterm zone="ch-system-grub grub-editenv">
  74. <primary sortas="b-grub-editenv">grub-editenv</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="grub-mkelfimage">
  79. <term><command>grub-mkelfimage</command></term>
  80. <listitem>
  81. <para>Make a bootable image of GRUB</para>
  82. <indexterm zone="ch-system-grub grub-mkelfimage">
  83. <primary sortas="b-grub-mkelfimage">grub-mkelfimage</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="grub-mkfont">
  88. <term><command>grub-mkfont</command></term>
  89. <listitem>
  90. <para>Update fonts for GRUB use</para>
  91. <indexterm zone="ch-system-grub grub-mkfont">
  92. <primary sortas="b-grub-mkfont">grub-mkfont</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="grub-mkimage">
  97. <term><command>grub-mkimage</command></term>
  98. <listitem>
  99. <para>Make a bootable image of GRUB</para>
  100. <indexterm zone="ch-system-grub grub-mkimage">
  101. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="grub-mkrescue">
  106. <term><command>grub-mkrescue</command></term>
  107. <listitem>
  108. <para>Make a bootable image of GRUB suitable for a floppy disk</para>
  109. <indexterm zone="ch-system-grub grub-mkrescue">
  110. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="grub-dumpbios">
  115. <term><command>grub-dumpbios</command></term>
  116. <listitem>
  117. <para>Create vbios and int10 dump</para>
  118. <indexterm zone="ch-system-grub grub-dumpbios">
  119. <primary sortas="b-grub-dumpbios">grub-dumpbios</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="grub-install">
  124. <term><command>grub-install</command></term>
  125. <listitem>
  126. <para>Install GRUB on your drive</para>
  127. <indexterm zone="ch-system-grub grub-install">
  128. <primary sortas="b-grub-install">grub-install</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="grub-mkconfig">
  133. <term><command>grub-mkconfig</command></term>
  134. <listitem>
  135. <para>Generate a grub config file</para>
  136. <indexterm zone="ch-system-grub grub-mkconfig">
  137. <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="grub-mkdevicemap">
  142. <term><command>grub-mkdevicemap</command></term>
  143. <listitem>
  144. <para>Generate a device map file automatically</para>
  145. <indexterm zone="ch-system-grub grub-mkdevicemap">
  146. <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="grub-probe">
  151. <term><command>grub-probe</command></term>
  152. <listitem>
  153. <para>Probe device information for a given path or device</para>
  154. <indexterm zone="ch-system-grub grub-probe">
  155. <primary sortas="b-grub-probe">grub-probe</primary>
  156. </indexterm>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry id="grub-setup">
  160. <term><command>grub-setup</command></term>
  161. <listitem>
  162. <para>Set up images to boot from a device</para>
  163. <indexterm zone="ch-system-grub grub-setup">
  164. <primary sortas="b-grub-setup">grub-setup</primary>
  165. </indexterm>
  166. </listitem>
  167. </varlistentry>
  168. </variablelist>
  169. </sect2>
  170. </sect1>