grub.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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-largefile \
  38. --disable-grub-emu \
  39. --disable-grub-emu-usb \
  40. --disable-grub-fstest \
  41. --disable-efiemu</userinput></screen>
  42. <para>Using a separate build directory keeps the 2400 generated
  43. files out of the main directory and is recommeded by the developers.
  44. The --disable switches just minimze what is built by disabling
  45. features and testing programs not really needed for LFS.</para>
  46. <para>Compile the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>This package does not come with a test suite.</para>
  49. <para>Install the package:</para>
  50. <screen><userinput remap="install">make install</userinput></screen>
  51. <para>Using GRUB to make you LFS system bootable will be discussed in
  52. <xref linkend="ch-bootable-grub"/>.</para>
  53. </sect2>
  54. <sect2 id="contents-gRUB" role="content">
  55. <title>Contents of GRUB</title>
  56. <segmentedlist>
  57. <segtitle>Installed programs</segtitle>
  58. <segtitle>Installed directories</segtitle>
  59. <seglistitem>
  60. <seg>grub-editenv, grub-mkelfimage, grub-mkfont, grub-mkimage,
  61. grub-mkrescue, grub-dumpbios, grub-install, grub-mkconfig,
  62. grub-mkdevicemap, grub-probe, grub-setup</seg>
  63. <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /usr/inclue/grub</seg>
  64. </seglistitem>
  65. </segmentedlist>
  66. <variablelist>
  67. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  68. <?dbfo list-presentation="list"?>
  69. <?dbhtml list-presentation="table"?>
  70. <varlistentry id="grub-editenv">
  71. <term><command>grub-editenv</command></term>
  72. <listitem>
  73. <para>A tool to edit the environment block</para>
  74. <indexterm zone="ch-system-grub grub-editenv">
  75. <primary sortas="b-grub-editenv">grub-editenv</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="grub-mkelfimage">
  80. <term><command>grub-mkelfimage</command></term>
  81. <listitem>
  82. <para>Make a bootable image of GRUB</para>
  83. <indexterm zone="ch-system-grub grub-mkelfimage">
  84. <primary sortas="b-grub-mkelfimage">grub-mkelfimage</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="grub-mkfont">
  89. <term><command>grub-mkfont</command></term>
  90. <listitem>
  91. <para>Update fonts for GRUB use</para>
  92. <indexterm zone="ch-system-grub grub-mkfont">
  93. <primary sortas="b-grub-mkfont">grub-mkfont</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="grub-mkimage">
  98. <term><command>grub-mkimage</command></term>
  99. <listitem>
  100. <para>Make a bootable image of GRUB</para>
  101. <indexterm zone="ch-system-grub grub-mkimage">
  102. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry id="grub-mkrescue">
  107. <term><command>grub-mkrescue</command></term>
  108. <listitem>
  109. <para>Make a bootable image of GRUB suitable for a floppy disk</para>
  110. <indexterm zone="ch-system-grub grub-mkrescue">
  111. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="grub-dumpbios">
  116. <term><command>grub-dumpbios</command></term>
  117. <listitem>
  118. <para>Create vbios and int10 dump</para>
  119. <indexterm zone="ch-system-grub grub-dumpbios">
  120. <primary sortas="b-grub-dumpbios">grub-dumpbios</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="grub-install">
  125. <term><command>grub-install</command></term>
  126. <listitem>
  127. <para>Install GRUB on your drive</para>
  128. <indexterm zone="ch-system-grub grub-install">
  129. <primary sortas="b-grub-install">grub-install</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="grub-mkconfig">
  134. <term><command>grub-mkconfig</command></term>
  135. <listitem>
  136. <para>Generate a grub config file</para>
  137. <indexterm zone="ch-system-grub grub-mkconfig">
  138. <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="grub-mkdevicemap">
  143. <term><command>grub-mkdevicemap</command></term>
  144. <listitem>
  145. <para>Generate a device map file automatically</para>
  146. <indexterm zone="ch-system-grub grub-mkdevicemap">
  147. <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="grub-probe">
  152. <term><command>grub-probe</command></term>
  153. <listitem>
  154. <para>Probe device information for a given path or device</para>
  155. <indexterm zone="ch-system-grub grub-probe">
  156. <primary sortas="b-grub-probe">grub-probe</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="grub-setup">
  161. <term><command>grub-setup</command></term>
  162. <listitem>
  163. <para>Set up images to boot from a device</para>
  164. <indexterm zone="ch-system-grub grub-setup">
  165. <primary sortas="b-grub-setup">grub-setup</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. </variablelist>
  170. </sect2>
  171. </sect1>