- Timestamp:
- 07/02/2010 12:01:06 AM (14 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- b728ca9
- Parents:
- 344f65a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/grub.xml
r344f65a r6541b70 110 110 111 111 ### BEGIN /etc/grub.d/10_linux ### 112 menuentry "GNU/Linux, Linux 2.6.3 0.2-lfs65" {112 menuentry "GNU/Linux, Linux 2.6.34-lfs" { 113 113 insmod ext2 114 114 set root=(hd0,2) … … 148 148 </computeroutput></screen> 149 149 150 <para>Note that even though there is a warning not to edit the file, you can 151 do so as long as you do not re-run <command>grub-mkconfig</command>. The 152 <emphasis>search</emphasis> lines are not meaningful for LFS systems as that 153 command needs an initrd image for processing. If installing on a separate 154 partition the linux and initrd lines will not have the /boot on the file 155 names. In this example the kernel files for a Ubuntu installation are 156 also found in <filename class="directory">/boot</filename>.</para> 150 <note> 151 <itemizedlist> 152 <listitem><para>Even though there is a warning not to edit the file, you 153 can do so as long as you do not re-run 154 <command>grub-mkconfig</command>.</para></listitem> 155 156 <listitem><para>The <emphasis>search</emphasis> lines are generally not 157 useful for LFS systems as that command only sets an internal GRUB 158 variable used to find the kernel image. The <emphasis>set root</emphasis> 159 command provides the same capability without the overhead of 160 searching.</para></listitem> 161 162 <listitem><para>The <emphasis>set root</emphasis> and 163 <emphasis>insmod ext2</emphasis> commands can be moved out of the 164 <emphasis>menuentry</emphasis> sections to apply to all sections of the file. 165 This leads to a simple section like:</para></listitem> 166 167 </itemizedlist> 168 <screen><computeroutput>menuentry "Linux &linux-version;-lfs-&version;" { 169 linux /boot/vmlinux-&linux-version;-lfs-&version; root=/dev/sda2 ro 170 } 171 </computeroutput></screen> 172 173 <itemizedlist> 174 175 <listitem><para>Passing a UUID to the kernel requires an initial ram disk 176 (initrd) not built by LFS.</para></listitem> 177 178 <listitem><para>If the <filename>/boot</filename> partition is installed 179 on a separate partition, the linux and initrd lines should not have the 180 string <emphasis>/boot</emphasis> prefixed to the file 181 names.</para></listitem> 182 183 <listitem><para>In this example the kernel files for a Ubuntu 184 installation are also found in <filename 185 class="directory">/boot</filename>.</para></listitem> 186 187 </itemizedlist> 188 </note> 157 189 158 190 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.