grub.xml 11 KB

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