grub.xml 13 KB

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