1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
9 <?dbhtml filename="stages.html"?>
11 <title>Building LFS in Stages</title>
13 <para>LFS is designed to be built in one session. That is, the
14 instructions assume that the system will not be shut down
15 during the process. That does not mean that the system has to
16 be done in one sitting. The issue is that certain procedures
17 have to be re-accomplished after a reboot if resuming LFS at
18 different points.</para>
21 <title>Chapters 1–4</title>
23 <para>These chapters are accomplished on the host system. When
24 restarting, be careful of the following:</para>
28 <para>Procedures done as the root user after Section 2.4 need to
29 have the LFS environment variable set <emphasis>FOR THE ROOT
30 USER</emphasis>.</para>
36 <title>Chapter 5</title>
40 <para>The /mnt/lfs partition must be mounted.</para>
44 <para><emphasis>ALL</emphasis> instructions in Chapter 5
45 must be done by user <emphasis>lfs</emphasis>.
46 A <command>su - lfs</command> needs to be done before any
47 task in Chapter 5.</para>
51 <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
52 are critical. If there is any
53 doubt about installing a package, ensure any previously expanded
54 tarballs are removed, re-extract the package files, and complete all
55 instructions in that section.</para>
61 <title>Chapters 6–8</title>
65 <para>The /mnt/lfs partition must be mounted.</para>
69 <para> When entering chroot, the LFS environment variable must be set
70 for root. The LFS variable is not used otherwise.</para>
74 <para> The virtual file systems must be mounted. This can be done
75 before or after entering chroot by changing to a host virtual terminal
76 and, as root, running the commands in
77 <xref linkend='ch-system-bindmount'/> and
78 <xref linkend='ch-system-kernfsmount'/>.</para>