2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
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-11 04:13:43 +01:00
|
|
|
<para>This chapter shows how to build the last missing bits of the temporary
|
2022-09-30 17:22:10 +01:00
|
|
|
system: the tools needed to build the various packages. Now
|
2021-09-04 01:43:45 +01:00
|
|
|
that all circular dependencies have been resolved, a <quote>chroot</quote>
|
|
|
|
environment, completely isolated from the host operating system (except for
|
|
|
|
the running kernel), can be used for the build.</para>
|
2020-06-09 14:35:39 +01:00
|
|
|
|
|
|
|
<para>For proper operation of the isolated environment, some communication
|
2022-09-30 17:22:10 +01:00
|
|
|
with the running kernel must be established. This is done via the
|
2022-10-01 05:41:42 +01:00
|
|
|
so-called <emphasis>Virtual Kernel File Systems</emphasis>, which will be
|
2022-09-30 17:22:10 +01:00
|
|
|
mounted before entering the chroot environment. You may want to verify
|
|
|
|
that they are mounted by issuing the <command>findmnt</command> command.</para>
|
2020-06-09 14:35:39 +01:00
|
|
|
|
|
|
|
<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
|
2022-04-21 07:12:43 +01:00
|
|
|
are run as &root;, fortunately without access to the OS of the computer
|
2020-06-11 04:13:43 +01:00
|
|
|
you built LFS on. Be careful anyway, as it is easy to destroy the whole
|
2022-09-30 17:22:10 +01:00
|
|
|
LFS system with bad commands.</para>
|
2014-04-03 22:52:09 +01:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
</sect1>
|