aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/introduction.xml
blob: 1d53f69879e3ce145d078c8a0ac45f008d3a868b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>

<sect1 id="ch-tools-introduction-chroot">
  <?dbhtml filename="introduction.html"?>

  <title>Introduction</title>

  <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 the host operating system 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>findmnt</command>.</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 built LFS on. Be careful anyway, as it is easy to destroy the whole
  LFS system with badly formed commands.</para>

</sect1>