mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +00:00
Text updates
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1115 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
fa914e5962
commit
2bdc67d178
@ -3,7 +3,7 @@
|
||||
|
||||
<para>In order for certain programs to be able to determine where certain
|
||||
partitions are supposed to be mounted by default, the /etc/fstab file is
|
||||
used. A new file <filename>/etc/fstab</filename> is created containing the
|
||||
used. Create a new file <filename>/etc/fstab</filename> containing the
|
||||
following:</para>
|
||||
|
||||
<para><screen><userinput>cat > /etc/fstab << "EOF"</userinput>
|
||||
|
@ -7,14 +7,16 @@ Estimated required disk space: &kernel-compsize;</screen>
|
||||
<para>Building the kernel involves a few steps: configuring it and compiling
|
||||
it. There are a few ways to configure the kernel. If you don't like the
|
||||
way this book does it, read the <filename>README</filename> that comes
|
||||
with the kernel source tree, and find out what the options are.</para>
|
||||
with the kernel source tree, and find out what the other options are.</para>
|
||||
|
||||
<para>Something you could do, is take the .config file from your host
|
||||
distribution's kernel source tree and copy it to $LFS/usr/src/linux.
|
||||
This way you don't have to configure the entire kernel from scratch and
|
||||
can use your current values. If you choose to do this, first run the
|
||||
make mrproper command below, then copy the .config file over, then run
|
||||
make menuconfig.</para>
|
||||
make menuconfig (make oldconfig may be better in some situations. See
|
||||
the <filename>README</filename> file for more details when to use make
|
||||
oldconfig).</para>
|
||||
|
||||
<para>The following commands are run to build the kernel:</para>
|
||||
|
||||
|
@ -26,25 +26,25 @@ image=/boot/lfskernel
|
||||
read-only
|
||||
<userinput>EOF</userinput></screen></para>
|
||||
|
||||
<para><partition> must be replaced by the LFS
|
||||
<para><partition> must be replaced with the LFS
|
||||
partition's designation.</para>
|
||||
|
||||
<para>Also note that if you are using reiserfs for your root partition,
|
||||
the line <userinput>read-only</userinput> should be changed to
|
||||
<userinput>read-write</userinput>.</para>
|
||||
|
||||
<para>Now the boot loader gets updated by running:</para>
|
||||
<para>Now, update the boot loader by running:</para>
|
||||
|
||||
<para><screen><userinput>/sbin/lilo</userinput></screen></para>
|
||||
|
||||
<para>The last step is syncing the host system lilo config. files with the
|
||||
LFS system:</para>
|
||||
<para>The last step is synchronizing the host system's lilo
|
||||
configuration files with the LFS system's:</para>
|
||||
|
||||
<para><screen><userinput>cp /etc/lilo.conf $LFS/etc &&</userinput>
|
||||
<userinput>cp <kernel images> $LFS/boot</userinput></screen></para>
|
||||
|
||||
<para>To find out which kernel images files are being used, look at the
|
||||
/etc/lilo.conf file and find the lines starting with
|
||||
/etc/lilo.conf file and look for the lines starting with
|
||||
<emphasis>image=</emphasis>. If your host system has kernel files in
|
||||
other places than the /boot directory, make sure you update the paths
|
||||
in the $LFS/etc/lilo.conf file so that it does look for them in the
|
||||
|
Loading…
Reference in New Issue
Block a user