grub.xml 13 KB

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