mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 05:57:43 +00:00
2f9131f839
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4638 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
83 lines
2.9 KiB
XML
83 lines
2.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-bootable-kernel" xreflabel="Linux" role="wrap">
|
|
<title>Linux-&linux-version;</title>
|
|
<?dbhtml filename="kernel.html"?>
|
|
|
|
<indexterm zone="ch-bootable-kernel"><primary sortas="a-Linux">Linux</primary></indexterm>
|
|
|
|
<sect2 role="package"><title/>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>All default options: 4.20 SBU</seg>
|
|
<seg>All default options: 181 MB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of the kernel</title>
|
|
|
|
<para>Kernel version 2.6.10 has a security vulnerability that will allow user
|
|
processes to gain root privledges upon loading of a kernel module. See:
|
|
<ulink url="http://www.uwsg.iu.edu/hypermail/linux/kernel/0412.3/0679.html"/> for more information. The following patch fixes this problem:</para>
|
|
|
|
<screen><userinput>patch -Np1 -i ../linux-&linux-version;-security_fix-1.patch</userinput></screen>
|
|
|
|
<para>Prepare for compilation by running the following command:</para>
|
|
|
|
<screen><userinput>make mrproper</userinput></screen>
|
|
|
|
<!--NEW: the sed command has been removed-->
|
|
|
|
<para>If, in <xref linkend="ch-scripts-console"/>, you decided you want
|
|
to compile the keymap into the kernel, issue the command below:</para>
|
|
|
|
<screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \
|
|
drivers/char/defkeymap.c</userinput></screen>
|
|
|
|
<para>Configure the kernel via a menu-driven interface. BLFS has some
|
|
information regarding particular kernel configuration requirements of
|
|
packages outside of LFS at
|
|
<ulink url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>.</para>
|
|
|
|
<screen><userinput>make menuconfig</userinput></screen>
|
|
|
|
<para>Compile the kernel image and modules:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<para>Install the modules, if your kernel configuration uses them:</para>
|
|
|
|
<screen><userinput>make modules_install</userinput></screen>
|
|
|
|
<para>The path to the kernel image may vary depending on the platform you're
|
|
using. Issue the following command to install the kernel:</para>
|
|
|
|
<screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
|
|
|
|
<screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
|
|
|
|
<screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
|
|
|
|
<para>If you are going to keep the kernel source tree around, you may want to
|
|
run <command>chown -R 0:0</command> on the
|
|
<filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
|
|
owned by user <emphasis>root</emphasis>.</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="contents-kernel" role="content"><title>Contents of Linux</title>
|
|
|
|
<para>See testing</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|