/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.45 Revision 1.46
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.45 2012/02/22 21:27:45 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.46 2012/03/27 17:47:19 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12The Linux kernel is the core of every distribution. This chapter 12The Linux kernel is the core of every distribution. This chapter
13explains how to configure your kernel. 13explains how to configure your kernel.
14</abstract> 14</abstract>
15 15
16<version>15</version> 16<version>16</version>
17<date>2012-02-22</date> 17<date>2012-03-27</date>
18 18
19<section> 19<section>
20<title>Timezone</title> 20<title>Timezone</title>
21<body> 21<body>
22 22
234modem, you will need the following options in the kernel: 234modem, you will need the following options in the kernel:
235</p> 235</p>
236 236
237<pre caption="Selecting PPPoE necessary drivers"> 237<pre caption="Selecting PPPoE necessary drivers">
238Device Drivers ---&gt; 238Device Drivers ---&gt;
239 Networking device Support ---&gt; 239 Network device support ---&gt;
240 &lt;*&gt; PPP (point-to-point protocol) support 240 &lt;*&gt; PPP (point-to-point protocol) support
241 &lt;*&gt; PPP support for async serial ports 241 &lt;*&gt; PPP support for async serial ports
242 &lt;*&gt; PPP support for sync tty ports 242 &lt;*&gt; PPP support for sync tty ports
243</pre> 243</pre>
244 244
340 340
341<pre caption="Installing the kernel"> 341<pre caption="Installing the kernel">
342# <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i> 342# <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i>
343</pre> 343</pre>
344 344
345</body>
346</subsection>
347<subsection id="initramfs">
348<title>(Optional) Building an Initramfs</title>
349<body>
350
351<p>
352If you use a specific partition layout where important file system locations
353(like <path>/usr</path> or <path>/var</path>) are on separate partitions, then
354you will need to setup an initramfs so that this partition can be mounted before
355it is needed.
356</p>
357
358<p>
359Without an initramfs, you risk that the system will not boot up properly as the
360tools that are responsible for mounting the file systems need information that
361resides on those file systems. An initramfs will pull in the necessary files
362into an archive which is used right after the kernel boots, but before the
363control is handed over to the <c>init</c> tool. Scripts on the initramfs will
364then make sure that the partitions are properly mounted before the system
365continues booting.
366</p>
367
368<p>
369To install an initramfs, install <c>genkernel</c> first, then have it
370generate an initramfs for you.
371</p>
372
373<pre caption="Building an initramfs">
374# <i>emerge genkernel</i>
375# <i>genkernel --install initramfs</i>
376</pre>
377
378<p>
379If you need specific support in the initramfs, such as lvm or raid, add in the
380appropriate options to genkernel. See <c>genkernel --help</c> for more
381information, or the next example which enables support for LVM and software raid
382(mdadm):
383</p>
384
385<pre caption="Building an initramfs with support for LVM and software raid">
386# <i>genkernel --lvm --mdadm --install initramfs</i>
387</pre>
388
389<p>
390The initramfs will be stored in <path>/boot</path>. You can find the file by
391simply listing the files starting with <path>initramfs</path>:
392</p>
393
394<pre caption="Checking the initramfs file name">
395# <i>ls /boot/initramfs*</i>
396</pre>
397
345<p> 398<p>
346Now continue with <uri link="#kernel_modules">Kernel Modules</uri>. 399Now continue with <uri link="#kernel_modules">Kernel Modules</uri>.
347</p> 400</p>
348 401
349</body> 402</body>

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20