grub.xml 10 KB

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