/[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.47 Revision 1.48
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.47 2012/04/12 15:53:31 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.48 2012/09/11 22:49:21 nightmorph 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>17</version> 16<version>18</version>
17<date>2012-04-12</date> 17<date>2012-09-11</date>
18 18
19<section> 19<section>
20<title>Timezone</title> 20<title>Timezone</title>
21<body> 21<body>
22 22
354# <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i> 354# <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i>
355</pre> 355</pre>
356 356
357</body> 357</body>
358</subsection> 358</subsection>
359<subsection id="initramfs">
360<title>(Optional) Building an Initramfs</title>
361<body>
362
363<p>
364If you use a specific partition layout where important file system locations
365(like <path>/usr</path> or <path>/var</path>) are on separate partitions, then
366you will need to setup an initramfs so that this partition can be mounted before
367it is needed.
368</p>
369
370<p>
371Without an initramfs, you risk that the system will not boot up properly as the
372tools that are responsible for mounting the file systems need information that
373resides on those file systems. An initramfs will pull in the necessary files
374into an archive which is used right after the kernel boots, but before the
375control is handed over to the <c>init</c> tool. Scripts on the initramfs will
376then make sure that the partitions are properly mounted before the system
377continues booting.
378</p>
379
380<p>
381To install an initramfs, install <c>genkernel</c> first, then have it
382generate an initramfs for you.
383</p>
384
385<pre caption="Building an initramfs">
386# <i>emerge genkernel</i>
387# <i>genkernel --install initramfs</i>
388</pre>
389
390<p>
391If you need specific support in the initramfs, such as lvm or raid, add in the
392appropriate options to genkernel. See <c>genkernel --help</c> for more
393information, or the next example which enables support for LVM and software raid
394(mdadm):
395</p>
396
397<pre caption="Building an initramfs with support for LVM and software raid">
398# <i>genkernel --lvm --mdadm --install initramfs</i>
399</pre>
400
401<p>
402The initramfs will be stored in <path>/boot</path>. You can find the file by
403simply listing the files starting with <path>initramfs</path>:
404</p>
405
406<pre caption="Checking the initramfs file name">
407# <i>ls /boot/initramfs*</i>
408</pre>
409
410<p>
411Now continue with <uri link="#kernel_modules">Kernel Modules</uri>.
412</p>
413
414</body>
415</subsection> 359<subsection>
360<include href="hb-install-initramfs.xml"/>
361</subsection>
362
416</section> 363</section>
417<section id="genkernel"> 364<section id="genkernel">
418<title>Alternative: Using genkernel</title> 365<title>Alternative: Using genkernel</title>
419<body> 366<body>
420 367

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20