grub.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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">./configure --prefix=/usr \
  34. --sysconfdir=/etc \
  35. --disable-grub-emu-usb \
  36. --disable-grub-fstest \
  37. --disable-efiemu \
  38. --disable-werror</userinput></screen>
  39. <para>The --disable switches minimize what is built by disabling features
  40. and testing programs not really needed for LFS.</para>
  41. <para>Compile the package:</para>
  42. <screen><userinput remap="make">make</userinput></screen>
  43. <para>This package does not come with a test suite.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput remap="install">make install</userinput></screen>
  46. <para>Using GRUB to make your LFS system bootable will be discussed in
  47. <xref linkend="ch-bootable-grub"/>.</para>
  48. </sect2>
  49. <sect2 id="contents-gRUB" role="content">
  50. <title>Contents of GRUB</title>
  51. <segmentedlist>
  52. <segtitle>Installed programs</segtitle>
  53. <segtitle>Installed directories</segtitle>
  54. <seglistitem>
  55. <seg>grub-bin2h, grub-editenv, grub-install, grub-mkconfig,
  56. grub-mkdevicemap, grub-mkelfimage, grub-mkimage, grub-mkisofs,
  57. grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-probe,
  58. grub-reboot, grub-script-check, grub-set-default, grub-setup</seg>
  59. <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub</seg>
  60. </seglistitem>
  61. </segmentedlist>
  62. <variablelist>
  63. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  64. <?dbfo list-presentation="list"?>
  65. <?dbhtml list-presentation="table"?>
  66. <varlistentry id="grub-bin2h">
  67. <term><command>grub-bin2h</command></term>
  68. <listitem>
  69. <para>Converts a binary file to a C header</para>
  70. <indexterm zone="ch-system-grub grub-bin2h">
  71. <primary sortas="b-grub-bin2h">grub-bin2h</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="grub-editenv">
  76. <term><command>grub-editenv</command></term>
  77. <listitem>
  78. <para>A tool to edit the environment block</para>
  79. <indexterm zone="ch-system-grub grub-editenv">
  80. <primary sortas="b-grub-editenv">grub-editenv</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="grub-install">
  85. <term><command>grub-install</command></term>
  86. <listitem>
  87. <para>Install GRUB on your drive</para>
  88. <indexterm zone="ch-system-grub grub-install">
  89. <primary sortas="b-grub-install">grub-install</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="grub-mkconfig">
  94. <term><command>grub-mkconfig</command></term>
  95. <listitem>
  96. <para>Generate a grub config file</para>
  97. <indexterm zone="ch-system-grub grub-mkconfig">
  98. <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="grub-mkdevicemap">
  103. <term><command>grub-mkdevicemap</command></term>
  104. <listitem>
  105. <para>Generate a device map file automatically</para>
  106. <indexterm zone="ch-system-grub grub-mkdevicemap">
  107. <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="grub-mkelfimage">
  112. <term><command>grub-mkelfimage</command></term>
  113. <listitem>
  114. <para>Make a bootable image of GRUB</para>
  115. <indexterm zone="ch-system-grub grub-mkelfimage">
  116. <primary sortas="b-grub-mkelfimage">grub-mkelfimage</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="grub-mkimage">
  121. <term><command>grub-mkimage</command></term>
  122. <listitem>
  123. <para>Make a bootable image of GRUB</para>
  124. <indexterm zone="ch-system-grub grub-mkimage">
  125. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="grub-mkisofs">
  130. <term><command>grub-mkisofs</command></term>
  131. <listitem>
  132. <para>Creates a bootable ISO image</para>
  133. <indexterm zone="ch-system-grub grub-mkisofs">
  134. <primary sortas="b-grub-mkisofs">grub-mkisofs</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="grub-mkpasswd-pbkdf2">
  139. <term><command>grub-mkpasswd-pbkdf2</command></term>
  140. <listitem>
  141. <para>Generates an encrypted PBKDF2 password for use in the boot
  142. menu</para>
  143. <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
  144. <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
  145. </indexterm>
  146. </listitem>
  147. </varlistentry>
  148. <varlistentry id="grub-mkrelpath">
  149. <term><command>grub-mkrelpath</command></term>
  150. <listitem>
  151. <para>Makes a system pathname relative to its root</para>
  152. <indexterm zone="ch-system-grub grub-mkrelpath">
  153. <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="grub-mkrescue">
  158. <term><command>grub-mkrescue</command></term>
  159. <listitem>
  160. <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
  161. <indexterm zone="ch-system-grub grub-mkrescue">
  162. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  163. </indexterm>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry id="grub-probe">
  167. <term><command>grub-probe</command></term>
  168. <listitem>
  169. <para>Probe device information for a given path or device</para>
  170. <indexterm zone="ch-system-grub grub-probe">
  171. <primary sortas="b-grub-probe">grub-probe</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="grub-reboot">
  176. <term><command>grub-reboot</command></term>
  177. <listitem>
  178. <para>Sets the default boot entry for GRUB for the next boot only</para>
  179. <indexterm zone="ch-system-grub grub-reboot">
  180. <primary sortas="b-grub-reboot">grub-reboot</primary>
  181. </indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="grub-script-check">
  185. <term><command>grub-script-check</command></term>
  186. <listitem>
  187. <para>Checks GRUB configuration script for syntax errors</para>
  188. <indexterm zone="ch-system-grub grub-script-check">
  189. <primary sortas="b-grub-script-check">grub-script-check</primary>
  190. </indexterm>
  191. </listitem>
  192. </varlistentry>
  193. <varlistentry id="grub-set-default">
  194. <term><command>grub-set-default</command></term>
  195. <listitem>
  196. <para>Sets the default boot entry for GRUB</para>
  197. <indexterm zone="ch-system-grub grub-set-default">
  198. <primary sortas="b-grub-set-default">grub-set-default</primary>
  199. </indexterm>
  200. </listitem>
  201. </varlistentry>
  202. <varlistentry id="grub-setup">
  203. <term><command>grub-setup</command></term>
  204. <listitem>
  205. <para>Set up images to boot from a device</para>
  206. <indexterm zone="ch-system-grub grub-setup">
  207. <primary sortas="b-grub-setup">grub-setup</primary>
  208. </indexterm>
  209. </listitem>
  210. </varlistentry>
  211. </variablelist>
  212. </sect2>
  213. </sect1>