grub.xml 11 KB

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