grub.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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</userinput></screen>
  37. <para>The --disable switches minimize what is built by disabling features
  38. and testing programs not really needed for LFS.</para>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>This package does not come with a test suite.</para>
  42. <para>Install the package:</para>
  43. <screen><userinput remap="install">make install</userinput></screen>
  44. <para>Using GRUB to make your LFS system bootable will be discussed in
  45. <xref linkend="ch-bootable-grub"/>.</para>
  46. </sect2>
  47. <sect2 id="contents-gRUB" role="content">
  48. <title>Contents of GRUB</title>
  49. <segmentedlist>
  50. <segtitle>Installed programs</segtitle>
  51. <segtitle>Installed directories</segtitle>
  52. <seglistitem>
  53. <seg>grub-bin2h, grub-bios-setup, grub-editenv, grub-fstest,
  54. grub-install, grub-kbdcomp, grub-menulst2cfg, grub-mkconfig,
  55. grub-mkdevicemap, grub-mkimage, grub-mklayout, grub-mknetdir,
  56. grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
  57. grub-ofpathname, grub-probe, grub-reboot, grub-script-check,
  58. grub-set-default, grub-setup, grub-sparc64-setup </seg>
  59. <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /boot/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-bios-setup">
  76. <term><command>grub-bios-setup</command></term>
  77. <listitem>
  78. <para>Is a helper program for grub-install</para>
  79. <indexterm zone="ch-system-grub grub-bios-setup">
  80. <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="grub-editenv">
  85. <term><command>grub-editenv</command></term>
  86. <listitem>
  87. <para>A tool to edit the environment block</para>
  88. <indexterm zone="ch-system-grub grub-editenv">
  89. <primary sortas="b-grub-editenv">grub-editenv</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="grub-fstest">
  94. <term><command>grub-fstest</command></term>
  95. <listitem>
  96. <para>Tool to debug the filesystem driver</para>
  97. <indexterm zone="ch-system-grub grub-fstest">
  98. <primary sortas="b-grub-fstest">grub-fstest</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="grub-install">
  103. <term><command>grub-install</command></term>
  104. <listitem>
  105. <para>Install GRUB on your drive</para>
  106. <indexterm zone="ch-system-grub grub-install">
  107. <primary sortas="b-grub-install">grub-install</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="grub-kbdcomp">
  112. <term><command>grub-kbdcomp</command></term>
  113. <listitem>
  114. <para>Script that converts an xkb layout into one recognized by
  115. GRUB</para>
  116. <indexterm zone="ch-system-grub grub-kbdcomp">
  117. <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="grub-menulst2cfg">
  122. <term><command>grub-menulst2cfg</command></term>
  123. <listitem>
  124. <para>Converts a GRUB Legacy <filename>menu.lst</filename>
  125. into a <filename>grub.cfg</filename> for use with GRUB 2</para>
  126. <indexterm zone="ch-system-grub grub-menulst2cfg">
  127. <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="grub-mkconfig">
  132. <term><command>grub-mkconfig</command></term>
  133. <listitem>
  134. <para>Generate a grub config file</para>
  135. <indexterm zone="ch-system-grub grub-mkconfig">
  136. <primary sortas="b-grub-mkconfig">grub-mkconfig</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="grub-mkdevicemap">
  141. <term><command>grub-mkdevicemap</command></term>
  142. <listitem>
  143. <para>Generate a device map file automatically</para>
  144. <indexterm zone="ch-system-grub grub-mkdevicemap">
  145. <primary sortas="b-grub-mkdevicemap">grub-mkdevicemap</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="grub-mkimage">
  150. <term><command>grub-mkimage</command></term>
  151. <listitem>
  152. <para>Make a bootable image of GRUB</para>
  153. <indexterm zone="ch-system-grub grub-mkimage">
  154. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  155. </indexterm>
  156. </listitem>
  157. </varlistentry>
  158. <varlistentry id="grub-mklayout">
  159. <term><command>grub-mklayout</command></term>
  160. <listitem>
  161. <para>Generates a GRUB keyboard layout file</para>
  162. <indexterm zone="ch-system-grub grub-mklayout">
  163. <primary sortas="b-grub-mklayout">grub-mklayout</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="grub-mknetdir">
  168. <term><command>grub-mknetdir</command></term>
  169. <listitem>
  170. <para>Prepares a GRUB netboot directory</para>
  171. <indexterm zone="ch-system-grub grub-mknetdir">
  172. <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
  173. </indexterm>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="grub-mkpasswd-pbkdf2">
  177. <term><command>grub-mkpasswd-pbkdf2</command></term>
  178. <listitem>
  179. <para>Generates an encrypted PBKDF2 password for use in the boot
  180. menu</para>
  181. <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
  182. <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
  183. </indexterm>
  184. </listitem>
  185. </varlistentry>
  186. <varlistentry id="grub-mkrelpath">
  187. <term><command>grub-mkrelpath</command></term>
  188. <listitem>
  189. <para>Makes a system pathname relative to its root</para>
  190. <indexterm zone="ch-system-grub grub-mkrelpath">
  191. <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="grub-mkrescue">
  196. <term><command>grub-mkrescue</command></term>
  197. <listitem>
  198. <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
  199. <indexterm zone="ch-system-grub grub-mkrescue">
  200. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  201. </indexterm>
  202. </listitem>
  203. </varlistentry>
  204. <varlistentry id="grub-mkstandalone">
  205. <term><command>grub-mkstandalone</command></term>
  206. <listitem>
  207. <para>Generates a standalone image</para>
  208. <indexterm zone="ch-system-grub grub-mkstandalone">
  209. <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
  210. </indexterm>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="grub-ofpathname">
  214. <term><command>grub-ofpathname</command></term>
  215. <listitem>
  216. <para>Is a helper program that prints the path of a GRUB device</para>
  217. <indexterm zone="ch-system-grub grub-ofpathname">
  218. <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
  219. </indexterm>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="grub-probe">
  223. <term><command>grub-probe</command></term>
  224. <listitem>
  225. <para>Probe device information for a given path or device</para>
  226. <indexterm zone="ch-system-grub grub-probe">
  227. <primary sortas="b-grub-probe">grub-probe</primary>
  228. </indexterm>
  229. </listitem>
  230. </varlistentry>
  231. <varlistentry id="grub-reboot">
  232. <term><command>grub-reboot</command></term>
  233. <listitem>
  234. <para>Sets the default boot entry for GRUB for the next boot only</para>
  235. <indexterm zone="ch-system-grub grub-reboot">
  236. <primary sortas="b-grub-reboot">grub-reboot</primary>
  237. </indexterm>
  238. </listitem>
  239. </varlistentry>
  240. <varlistentry id="grub-script-check">
  241. <term><command>grub-script-check</command></term>
  242. <listitem>
  243. <para>Checks GRUB configuration script for syntax errors</para>
  244. <indexterm zone="ch-system-grub grub-script-check">
  245. <primary sortas="b-grub-script-check">grub-script-check</primary>
  246. </indexterm>
  247. </listitem>
  248. </varlistentry>
  249. <varlistentry id="grub-set-default">
  250. <term><command>grub-set-default</command></term>
  251. <listitem>
  252. <para>Sets the default boot entry for GRUB</para>
  253. <indexterm zone="ch-system-grub grub-set-default">
  254. <primary sortas="b-grub-set-default">grub-set-default</primary>
  255. </indexterm>
  256. </listitem>
  257. </varlistentry>
  258. <varlistentry id="grub-setup">
  259. <term><command>grub-setup</command></term>
  260. <listitem>
  261. <para>Set up images to boot from a device</para>
  262. <indexterm zone="ch-system-grub grub-setup">
  263. <primary sortas="b-grub-setup">grub-setup</primary>
  264. </indexterm>
  265. </listitem>
  266. </varlistentry>
  267. <varlistentry id="grub-sparc64-setup">
  268. <term><command>grub-sparc64-setup</command></term>
  269. <listitem>
  270. <para>Is a helper program for grub-setup</para>
  271. <indexterm zone="ch-system-grub grub-sparc64-setup">
  272. <primary sortas="b-grub-sparc64-setup">grub-setup</primary>
  273. </indexterm>
  274. </listitem>
  275. </varlistentry>
  276. </variablelist>
  277. </sect2>
  278. </sect1>