Changeset 4e60ea5 for BOOK/final-system/x86
- Timestamp:
- Aug 8, 2010, 11:21:31 AM (14 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 7278ff4
- Parents:
- 6cc876e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/x86/grub.xml
r6cc876e r4e60ea5 31 31 </note> 32 32 33 <para os="p1">GRUB has an issue that can cause it to segfault when you 34 try to configure a drive to utilize GRUB on x86_64 and building machines. The following 35 patch fixes this problem:</para> 36 37 <screen os="p2"><userinput>patch -Np1 -i ../&grub-use_mmap-patch;</userinput></screen> 38 39 <para os="p3">GRUB has an issue where it sometimes doesn't detect 40 the disk geometry correctly when used with Linux 2.6, resulting 41 in the error message <literal>Error 24: Attempt to access block outside 42 partition</literal>. The following patch contains a fix for this issue 43 as well as various fixes for raid controllers and support for the 44 new Intel Mac:</para> 45 46 <screen os="p4"><userinput>patch -Np1 -i ../&grub-fixes-patch;</userinput></screen> 47 48 <para os="p5">By default, GRUB doesn't support ext2 filesystems with 256-byte inodes. Fix this by applying the following patch:</para> 49 50 <screen os="p6"><userinput>patch -Np1 -i ../&grub-256byte_inode-patch;</userinput></screen> 51 52 <para os="p7">By default, GRUB doesn't support ext4 filesystems. Fix this by applying the following patch:</para> 53 54 <screen os="p8"><userinput>patch -Np1 -i ../&grub-ext4-patch;</userinput></screen> 55 56 <para os="a">This package is known to have issues when its default optimization 57 flags (including the <option>-march</option> and <option>-mcpu</option> 58 options) are changed. If any environment variables that override default 59 optimizations have been defined, such as <envar>CFLAGS</envar> and 60 <envar>CXXFLAGS</envar>, unset them when building GRUB.</para> 61 62 <para os="b">Prepare GRUB for compilation:</para> 63 64 <screen><userinput>./configure --prefix=/usr</userinput></screen> 33 <note os="n2"> 34 <para>This package is known to have issues when its default optimization 35 flags (including the <option>-march</option> and <option>-mcpu</option> 36 options) are changed. If any environment variables that override default 37 optimizations have been defined, such as <envar>CFLAGS</envar> and 38 <envar>CXXFLAGS</envar>, unset them when building GRUB.</para> 39 </note> 40 41 <para os="a">Prepare GRUB for compilation:</para> 42 43 <screen os="b"><userinput>./configure --prefix=/usr \ 44 --sysconfdir=/etc</userinput></screen> 65 45 66 46 <para os="c">Compile the package:</para> … … 68 48 <screen os="d"><userinput>make</userinput></screen> 69 49 70 <para os="e">To test the results, issue:50 <para os="e">To test GRUB you must have QEMU installed and then, issue: 71 51 <userinput>make check</userinput>.</para> 72 52 73 53 <para os="f">Install the package:</para> 74 54 75 <screen os="g"><userinput>make install 76 mkdir -pv /boot/grub 77 cp -v /usr/lib/grub/*/stage{1,2} /boot/grub</userinput></screen> 78 79 <para os="h">The directory in 80 <filename class="directory">/usr/lib/grub</filename> (its name depends 81 on your arch) contains a number of <filename>*stage1_5</filename> files, 82 different ones for different file systems. Review the files available and 83 copy the appropriate ones to the <filename 84 class="directory">/boot/grub</filename> directory. Most users will 85 copy the <filename>e2fs_stage1_5</filename> and/or 86 <filename>reiserfs_stage1_5</filename> files.</para> 55 <screen os="g"><userinput>make install</userinput></screen> 56 57 </sect2> 58 59 <sect2 id="conf-grub" role="configuration"> 60 <title>Configuring GRUB</title> 61 62 <indexterm zone="conf-grub"> 63 <primary sortas="a-GRUB">GRUB</primary> 64 <secondary>configuring</secondary></indexterm> 65 66 <indexterm zone="conf-grub"> 67 <primary sortas="e-/etc/default/grub">/etc/default/grub</primary> 68 </indexterm> 69 70 <para>Now that grub is installed, we need to configure the defaults that 71 will be used to generate the configuration after we install the kernel. 72 Create this file with the following:</para> 73 74 <screen><userinput>install -m755 -dv /etc/default 75 cat > /etc/default/grub << "EOF" 76 <literal># Begin /etc/default/grub 77 78 GRUB_DEFAULT=0 79 #GRUB_SAVEDEFAULT=true 80 GRUB_HIDDEN_TIMEOUT= 81 GRUB_HIDDEN_TIMEOUT_QUIET=false 82 GRUB_TIMEOUT=10 83 GRUB_DISTRIBUTOR=Cross-LFS 84 85 GRUB_CMDLINE_LINUX="" 86 GRUB_CMDLINE_LINUX_DEFAULT="" 87 88 #GRUB_TERMINAL=console 89 #GRUB_GFXMODE=640x480 90 91 #GRUB_DISABLE_LINUX_UUID=true 92 #GRUB_DISABLE_LINUX_RECOVERY=true 93 94 #GRUB_INIT_TUNE="480 440 1" 95 96 #GRUB_DISABLE_OS_PROBER=true 97 98 # End /etc/default/grub</literal> 99 EOF</userinput></screen> 100 101 <variablelist> 102 <title>The meaning of the above options and possible alternate 103 values:</title> 104 105 <varlistentry> 106 <term><parameter>GRUB_DEFAULT=</parameter></term> 107 <listitem> 108 <para>Write Me</para> 109 </listitem> 110 </varlistentry> 111 112 <varlistentry> 113 <term><parameter>GRUB_SAVEDEFAULT=</parameter></term> 114 <listitem> 115 <para>Write Me</para> 116 </listitem> 117 </varlistentry> 118 119 <varlistentry> 120 <term><parameter>GRUB_HIDDEN_TIMEOUT=</parameter></term> 121 <listitem> 122 <para>Write Me</para> 123 </listitem> 124 </varlistentry> 125 126 <varlistentry> 127 <term><parameter>GRUB_HIDDEN_TIMEOUT_QUIET=</parameter></term> 128 <listitem> 129 <para>Write Me</para> 130 </listitem> 131 </varlistentry> 132 133 <varlistentry> 134 <term><parameter>GRUB_TIMEOUT=</parameter></term> 135 <listitem> 136 <para>Write Me</para> 137 </listitem> 138 </varlistentry> 139 140 <varlistentry> 141 <term><parameter>GRUB_DISTRIBUTOR=</parameter></term> 142 <listitem> 143 <para>Write Me</para> 144 </listitem> 145 </varlistentry> 146 147 <varlistentry> 148 <term><parameter>GRUB_CMDLINE_LINUX=</parameter></term> 149 <listitem> 150 <para>Write Me</para> 151 </listitem> 152 </varlistentry> 153 154 <varlistentry> 155 <term><parameter>GRUB_CMDLINE_LINUX_DEFAULT=</parameter></term> 156 <listitem> 157 <para>Write Me</para> 158 </listitem> 159 </varlistentry> 160 161 <varlistentry> 162 <term><parameter>GRUB_TERMINAL=</parameter></term> 163 <listitem> 164 <para>Write Me</para> 165 </listitem> 166 </varlistentry> 167 168 <varlistentry> 169 <term><parameter>GRUB_GFXMODE=</parameter></term> 170 <listitem> 171 <para>Write Me</para> 172 </listitem> 173 </varlistentry> 174 175 <varlistentry> 176 <term><parameter>GRUB_DEFAULT=</parameter></term> 177 <listitem> 178 <para>Write Me</para> 179 </listitem> 180 </varlistentry> 181 182 <varlistentry> 183 <term><parameter>GRUB_DISABLE_LINUX_UUID=</parameter></term> 184 <listitem> 185 <para>Write Me</para> 186 </listitem> 187 </varlistentry> 188 189 <varlistentry> 190 <term><parameter>GRUB_DISABLE_LINUX_RECOVERY=</parameter></term> 191 <listitem> 192 <para>Write Me</para> 193 </listitem> 194 </varlistentry> 195 196 <varlistentry> 197 <term><parameter>GRUB_INIT_TUNE=</parameter></term> 198 <listitem> 199 <para>Write Me</para> 200 </listitem> 201 </varlistentry> 202 203 <varlistentry> 204 <term><parameter>GRUB_DISABLE_OS_PROBER=</parameter></term> 205 <listitem> 206 <para>Write Me</para> 207 </listitem> 208 </varlistentry> 209 210 </variablelist> 87 211 88 212 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.