grub.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-grub" xreflabel="Grub" role="wrap">
  7. <title>Grub-&grub-version;</title>
  8. <?dbhtml filename="grub.html"?>
  9. <indexterm zone="ch-system-grub"><primary sortas="a-Grub">Grub</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Grub package contains the GRand Unified Bootloader.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.2 SBU</seg><seg>10 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Grub installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  20. GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Grub</title>
  25. <para>This package is known to behave badly when you have changed its default
  26. optimization flags (including the -march and -mcpu options). Therefore, if you
  27. have defined any environment variables that override default optimizations,
  28. such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
  29. Grub.</para>
  30. <para>This package also has issues with being compiled by GCC 3.4, which we
  31. fix by applying the following patch:</para>
  32. <screen><userinput>patch -Np1 -i ../grub-&grub-version;-gcc34-1.patch</userinput></screen>
  33. <para>Prepare Grub for compilation:</para>
  34. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  35. <para>Now compile the rest of the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>To test the results, issue:
  38. <userinput>make check</userinput>.</para>
  39. <para>Now install it:</para>
  40. <screen><userinput>make install
  41. mkdir /boot/grub
  42. cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen>
  43. <para>Replace <filename class="directory">i386-pc</filename> with whatever
  44. directory is appropriate for your hardware.</para>
  45. <para>The <filename class="directory">i386-pc</filename> directory also
  46. contains a number of <filename>*stage1_5</filename> files, different ones
  47. for different file systems. Have a look at the ones available and copy the
  48. appropriate ones to the <filename class="directory">/boot/grub</filename>
  49. directory. Most people will copy the <filename>e2fs_stage1_5</filename>
  50. and/or <filename>reiserfs_stage1_5</filename> files.</para>
  51. </sect2>
  52. <sect2 id="contents-grub" role="content"><title>Contents of Grub</title>
  53. <segmentedlist>
  54. <segtitle>Installed programs</segtitle>
  55. <seglistitem><seg>grub, grub-install,
  56. grub-md5-crypt, grub-terminfo and mbchk</seg></seglistitem>
  57. </segmentedlist>
  58. <variablelist><title>Short descriptions</title>
  59. <varlistentry id="grub">
  60. <term><command>grub</command></term>
  61. <listitem>
  62. <indexterm zone="ch-system-grub grub"><primary sortas="b-grub">grub</primary></indexterm>
  63. <para>is the GRand Unified Bootloader's command shell.</para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry id="grub-install">
  67. <term><command>grub-install</command></term>
  68. <listitem>
  69. <indexterm zone="ch-system-grub grub-install"><primary sortas="b-grub-install">grub-install</primary></indexterm>
  70. <para>installs GRUB on the given device.</para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="grub-md5-crypt">
  74. <term><command>grub-md5-crypt</command></term>
  75. <listitem>
  76. <indexterm zone="ch-system-grub grub-md5-crypt"><primary sortas="b-grub-md5-crypt">grub-md5-crypt</primary></indexterm>
  77. <para>encrypts a password in MD5 format.</para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="grub-terminfo">
  81. <term><command>grub-terminfo</command></term>
  82. <listitem>
  83. <indexterm zone="ch-system-grub grub-terminfo"><primary sortas="b-grub-terminfo">grub-terminfo</primary></indexterm>
  84. <para>generates a terminfo command from a
  85. terminfo name. It can be used if you have an uncommon terminal.</para>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="mbchk">
  89. <term><command>mbchk</command></term>
  90. <listitem>
  91. <indexterm zone="ch-system-grub mbchk"><primary sortas="b-mbchk">mbchk</primary></indexterm>
  92. <para>checks the format of a multi-boot kernel.</para>
  93. </listitem>
  94. </varlistentry>
  95. </variablelist>
  96. </sect2>
  97. </sect1>