2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-12-18 18:31:04 +00:00
|
|
|
|
2020-06-09 14:35:39 +01:00
|
|
|
<sect1 id="ch-tools-introduction-chroot">
|
2005-12-18 18:31:04 +00:00
|
|
|
<?dbhtml filename="introduction.html"?>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
<title>Introduction</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2020-06-09 14:35:39 +01:00
|
|
|
<para>This chapter shows how to build the last missing bits of the
|
|
|
|
temporary system: first, the tools needed by the build machinery of
|
|
|
|
various packages, then three packages needed to run tests.
|
|
|
|
Now that all circular dependencies have been resolved,
|
|
|
|
we can use a <quote>chroot</quote> environment, completely isolated
|
|
|
|
from the computer used for the build, except for the running kernel.</para>
|
|
|
|
|
|
|
|
<para>For proper operation of the isolated environment, some communication
|
|
|
|
with the running kernel must be established. This is done through the
|
|
|
|
so-called <emphasis>Virtual Kernel File Systems</emphasis>, which must be
|
|
|
|
mounted when entering the chroot environment. You may want to check
|
|
|
|
that they are mounted by issuing <command>ls $LFS/dev</command>,
|
|
|
|
<command>ls $LFS/proc</command>, or <command>ls $LFS/sys</command>.
|
|
|
|
Note that mounting the virtual kernel file systems must be done
|
|
|
|
<emphasis>each time you want to enter the chroot
|
|
|
|
environment</emphasis>.</para>
|
|
|
|
|
|
|
|
<para>Until <xref linkend="ch-tools-chroot"/>, the commands must be
|
|
|
|
run as <systemitem class="username">root</systemitem>, with the
|
|
|
|
<envar>LFS</envar> variable set. After entering chroot, all commands
|
|
|
|
are run as root, fortunately without access to the OS of the computer
|
|
|
|
you build LFS on. Be careful anyway, as it is easy to destroy the whole
|
|
|
|
LFS system with badly formed commands.</para>
|
2014-04-03 22:52:09 +01:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
</sect1>
|