grub.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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-fstest, grub-install, grub-kbdcomp,
  55. grub-menulst2cfg, grub-mkconfig, grub-mkdevicemap, grub-mkimage,
  56. grub-mklayout, grub-mknetdir, grub-mkpasswd-pbkdf2, grub-mkrelpath,
  57. grub-mkrescue, grub-probe, grub-reboot, grub-script-check,
  58. 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-fstest">
  85. <term><command>grub-fstest</command></term>
  86. <listitem>
  87. <para>Tool to debug the filesystem driver</para>
  88. <indexterm zone="ch-system-grub grub-fstest">
  89. <primary sortas="b-grub-fstest">grub-fstest</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="grub-install">
  94. <term><command>grub-install</command></term>
  95. <listitem>
  96. <para>Install GRUB on your drive</para>
  97. <indexterm zone="ch-system-grub grub-install">
  98. <primary sortas="b-grub-install">grub-install</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="grub-kbdcomp">
  103. <term><command>grub-kbdcomp</command></term>
  104. <listitem>
  105. <para>Script that converts an xkb layout into one recognized by
  106. GRUB</para>
  107. <indexterm zone="ch-system-grub grub-kbdcomp">
  108. <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="grub-menulst2cfg">
  113. <term><command>grub-menulst2cfg</command></term>
  114. <listitem>
  115. <para>Converts a GRUB Legacy <filename>menu.lst</filename>
  116. into a <filename>grub.cfg</filename> for use with GRUB 2</para>
  117. <indexterm zone="ch-system-grub grub-menulst2cfg">
  118. <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="grub-mkconfig">
  123. <term><command>grub-mkconfig</command></term>
  124. <listitem>
  125. <para>Generate a grub config file</para>
  126. <indexterm zone="ch-system-grub grub-mkconfig">
  127. <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="grub-mkdevicemap">
  132. <term><command>grub-mkdevicemap</command></term>
  133. <listitem>
  134. <para>Generate a device map file automatically</para>
  135. <indexterm zone="ch-system-grub grub-mkdevicemap">
  136. <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="grub-mkimage">
  141. <term><command>grub-mkimage</command></term>
  142. <listitem>
  143. <para>Make a bootable image of GRUB</para>
  144. <indexterm zone="ch-system-grub grub-mkimage">
  145. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="grub-mklayout">
  150. <term><command>grub-mklayout</command></term>
  151. <listitem>
  152. <para>Generates a GRUB keyboard layout file</para>
  153. <indexterm zone="ch-system-grub grub-mklayout">
  154. <primary sortas="b-grub-mklayout">grub-mklayout</primary>
  155. </indexterm>
  156. </listitem>
  157. </varlistentry>
  158. <varlistentry id="grub-mknetdir">
  159. <term><command>grub-mknetdir</command></term>
  160. <listitem>
  161. <para>Prepares a GRUB netboot directory</para>
  162. <indexterm zone="ch-system-grub grub-mknetdir">
  163. <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="grub-mkpasswd-pbkdf2">
  168. <term><command>grub-mkpasswd-pbkdf2</command></term>
  169. <listitem>
  170. <para>Generates an encrypted PBKDF2 password for use in the boot
  171. menu</para>
  172. <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
  173. <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
  174. </indexterm>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry id="grub-mkrelpath">
  178. <term><command>grub-mkrelpath</command></term>
  179. <listitem>
  180. <para>Makes a system pathname relative to its root</para>
  181. <indexterm zone="ch-system-grub grub-mkrelpath">
  182. <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
  183. </indexterm>
  184. </listitem>
  185. </varlistentry>
  186. <varlistentry id="grub-mkrescue">
  187. <term><command>grub-mkrescue</command></term>
  188. <listitem>
  189. <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
  190. <indexterm zone="ch-system-grub grub-mkrescue">
  191. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="grub-probe">
  196. <term><command>grub-probe</command></term>
  197. <listitem>
  198. <para>Probe device information for a given path or device</para>
  199. <indexterm zone="ch-system-grub grub-probe">
  200. <primary sortas="b-grub-probe">grub-probe</primary>
  201. </indexterm>
  202. </listitem>
  203. </varlistentry>
  204. <varlistentry id="grub-reboot">
  205. <term><command>grub-reboot</command></term>
  206. <listitem>
  207. <para>Sets the default boot entry for GRUB for the next boot only</para>
  208. <indexterm zone="ch-system-grub grub-reboot">
  209. <primary sortas="b-grub-reboot">grub-reboot</primary>
  210. </indexterm>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="grub-script-check">
  214. <term><command>grub-script-check</command></term>
  215. <listitem>
  216. <para>Checks GRUB configuration script for syntax errors</para>
  217. <indexterm zone="ch-system-grub grub-script-check">
  218. <primary sortas="b-grub-script-check">grub-script-check</primary>
  219. </indexterm>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="grub-set-default">
  223. <term><command>grub-set-default</command></term>
  224. <listitem>
  225. <para>Sets the default boot entry for GRUB</para>
  226. <indexterm zone="ch-system-grub grub-set-default">
  227. <primary sortas="b-grub-set-default">grub-set-default</primary>
  228. </indexterm>
  229. </listitem>
  230. </varlistentry>
  231. <varlistentry id="grub-setup">
  232. <term><command>grub-setup</command></term>
  233. <listitem>
  234. <para>Set up images to boot from a device</para>
  235. <indexterm zone="ch-system-grub grub-setup">
  236. <primary sortas="b-grub-setup">grub-setup</primary>
  237. </indexterm>
  238. </listitem>
  239. </varlistentry>
  240. </variablelist>
  241. </sect2>
  242. </sect1>