grub.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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>Fix an incompatibility between this package and Glibc-&glibc-version;:</para>
  33. <screen><userinput remap="pre">sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h</userinput></screen>
  34. <para>Prepare GRUB for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr \
  36. --sysconfdir=/etc \
  37. --disable-grub-emu-usb \
  38. --disable-efiemu</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-bios-setup, grub-editenv, grub-fstest,
  56. grub-install, grub-kbdcomp, grub-menulst2cfg, grub-mkconfig,
  57. grub-mkdevicemap, grub-mkimage, grub-mklayout, grub-mknetdir,
  58. grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
  59. grub-ofpathname, grub-probe, grub-reboot, grub-script-check,
  60. grub-set-default, grub-setup, grub-sparc64-setup </seg>
  61. <seg>/usr/lib/grub, /etc/grub.d, /usr/share/grub, /boot/grub</seg>
  62. </seglistitem>
  63. </segmentedlist>
  64. <variablelist>
  65. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="grub-bin2h">
  69. <term><command>grub-bin2h</command></term>
  70. <listitem>
  71. <para>Converts a binary file to a C header</para>
  72. <indexterm zone="ch-system-grub grub-bin2h">
  73. <primary sortas="b-grub-bin2h">grub-bin2h</primary>
  74. </indexterm>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="grub-bios-setup">
  78. <term><command>grub-bios-setup</command></term>
  79. <listitem>
  80. <para>Is a helper program for grub-install</para>
  81. <indexterm zone="ch-system-grub grub-bios-setup">
  82. <primary sortas="b-grub-bios-setup">grub-bios-setup</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="grub-editenv">
  87. <term><command>grub-editenv</command></term>
  88. <listitem>
  89. <para>A tool to edit the environment block</para>
  90. <indexterm zone="ch-system-grub grub-editenv">
  91. <primary sortas="b-grub-editenv">grub-editenv</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="grub-fstest">
  96. <term><command>grub-fstest</command></term>
  97. <listitem>
  98. <para>Tool to debug the filesystem driver</para>
  99. <indexterm zone="ch-system-grub grub-fstest">
  100. <primary sortas="b-grub-fstest">grub-fstest</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="grub-install">
  105. <term><command>grub-install</command></term>
  106. <listitem>
  107. <para>Install GRUB on your drive</para>
  108. <indexterm zone="ch-system-grub grub-install">
  109. <primary sortas="b-grub-install">grub-install</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry id="grub-kbdcomp">
  114. <term><command>grub-kbdcomp</command></term>
  115. <listitem>
  116. <para>Script that converts an xkb layout into one recognized by
  117. GRUB</para>
  118. <indexterm zone="ch-system-grub grub-kbdcomp">
  119. <primary sortas="b-grub-kbdcomp">grub-kbdcomp</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="grub-menulst2cfg">
  124. <term><command>grub-menulst2cfg</command></term>
  125. <listitem>
  126. <para>Converts a GRUB Legacy <filename>menu.lst</filename>
  127. into a <filename>grub.cfg</filename> for use with GRUB 2</para>
  128. <indexterm zone="ch-system-grub grub-menulst2cfg">
  129. <primary sortas="b-grub-menulst2cfg">grub-menulst2cfg</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-mkimage">
  152. <term><command>grub-mkimage</command></term>
  153. <listitem>
  154. <para>Make a bootable image of GRUB</para>
  155. <indexterm zone="ch-system-grub grub-mkimage">
  156. <primary sortas="b-grub-mkimage">grub-mkimage</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="grub-mklayout">
  161. <term><command>grub-mklayout</command></term>
  162. <listitem>
  163. <para>Generates a GRUB keyboard layout file</para>
  164. <indexterm zone="ch-system-grub grub-mklayout">
  165. <primary sortas="b-grub-mklayout">grub-mklayout</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="grub-mknetdir">
  170. <term><command>grub-mknetdir</command></term>
  171. <listitem>
  172. <para>Prepares a GRUB netboot directory</para>
  173. <indexterm zone="ch-system-grub grub-mknetdir">
  174. <primary sortas="b-grub-mknetdir">grub-mknetdir</primary>
  175. </indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="grub-mkpasswd-pbkdf2">
  179. <term><command>grub-mkpasswd-pbkdf2</command></term>
  180. <listitem>
  181. <para>Generates an encrypted PBKDF2 password for use in the boot
  182. menu</para>
  183. <indexterm zone="ch-system-grub grub-mkpasswd-pbkdf2">
  184. <primary sortas="b-grub-mkpasswd-pbkdf2">grub-mkpasswd-pbkdf2</primary>
  185. </indexterm>
  186. </listitem>
  187. </varlistentry>
  188. <varlistentry id="grub-mkrelpath">
  189. <term><command>grub-mkrelpath</command></term>
  190. <listitem>
  191. <para>Makes a system pathname relative to its root</para>
  192. <indexterm zone="ch-system-grub grub-mkrelpath">
  193. <primary sortas="b-grub-mkrelpath">grub-mkrelpath</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. <varlistentry id="grub-mkrescue">
  198. <term><command>grub-mkrescue</command></term>
  199. <listitem>
  200. <para>Make a bootable image of GRUB suitable for a floppy disk or CDROM/DVD</para>
  201. <indexterm zone="ch-system-grub grub-mkrescue">
  202. <primary sortas="b-grub-mkrescue">grub-mkrescue</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="grub-mkstandalone">
  207. <term><command>grub-mkstandalone</command></term>
  208. <listitem>
  209. <para>Generates a standalone image</para>
  210. <indexterm zone="ch-system-grub grub-mkstandalone">
  211. <primary sortas="b-grub-mkstandalone">grub-mkstandalone</primary>
  212. </indexterm>
  213. </listitem>
  214. </varlistentry>
  215. <varlistentry id="grub-ofpathname">
  216. <term><command>grub-ofpathname</command></term>
  217. <listitem>
  218. <para>Is a helper program that prints the path of a GRUB device</para>
  219. <indexterm zone="ch-system-grub grub-ofpathname">
  220. <primary sortas="b-grub-ofpathname">grub-ofpathname</primary>
  221. </indexterm>
  222. </listitem>
  223. </varlistentry>
  224. <varlistentry id="grub-probe">
  225. <term><command>grub-probe</command></term>
  226. <listitem>
  227. <para>Probe device information for a given path or device</para>
  228. <indexterm zone="ch-system-grub grub-probe">
  229. <primary sortas="b-grub-probe">grub-probe</primary>
  230. </indexterm>
  231. </listitem>
  232. </varlistentry>
  233. <varlistentry id="grub-reboot">
  234. <term><command>grub-reboot</command></term>
  235. <listitem>
  236. <para>Sets the default boot entry for GRUB for the next boot only</para>
  237. <indexterm zone="ch-system-grub grub-reboot">
  238. <primary sortas="b-grub-reboot">grub-reboot</primary>
  239. </indexterm>
  240. </listitem>
  241. </varlistentry>
  242. <varlistentry id="grub-script-check">
  243. <term><command>grub-script-check</command></term>
  244. <listitem>
  245. <para>Checks GRUB configuration script for syntax errors</para>
  246. <indexterm zone="ch-system-grub grub-script-check">
  247. <primary sortas="b-grub-script-check">grub-script-check</primary>
  248. </indexterm>
  249. </listitem>
  250. </varlistentry>
  251. <varlistentry id="grub-set-default">
  252. <term><command>grub-set-default</command></term>
  253. <listitem>
  254. <para>Sets the default boot entry for GRUB</para>
  255. <indexterm zone="ch-system-grub grub-set-default">
  256. <primary sortas="b-grub-set-default">grub-set-default</primary>
  257. </indexterm>
  258. </listitem>
  259. </varlistentry>
  260. <varlistentry id="grub-setup">
  261. <term><command>grub-setup</command></term>
  262. <listitem>
  263. <para>Set up images to boot from a device</para>
  264. <indexterm zone="ch-system-grub grub-setup">
  265. <primary sortas="b-grub-setup">grub-setup</primary>
  266. </indexterm>
  267. </listitem>
  268. </varlistentry>
  269. <varlistentry id="grub-sparc64-setup">
  270. <term><command>grub-sparc64-setup</command></term>
  271. <listitem>
  272. <para>Is a helper program for grub-setup</para>
  273. <indexterm zone="ch-system-grub grub-sparc64-setup">
  274. <primary sortas="b-grub-sparc64-setup">grub-setup</primary>
  275. </indexterm>
  276. </listitem>
  277. </varlistentry>
  278. </variablelist>
  279. </sect2>
  280. </sect1>