grub.xml 8.5 KB

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