2016-05-17 02:06:38 +01:00
|
|
|
<?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;
|
|
|
|
]>
|
|
|
|
|
2020-02-09 20:50:38 +00:00
|
|
|
<sect1 id="ch-partitioning-stages">
|
2016-05-17 02:06:38 +01:00
|
|
|
<?dbhtml filename="stages.html"?>
|
|
|
|
|
|
|
|
<title>Building LFS in Stages</title>
|
|
|
|
|
|
|
|
<para>LFS is designed to be built in one session. That is, the
|
|
|
|
instructions assume that the system will not be shut down
|
|
|
|
during the process. That does not mean that the system has to
|
|
|
|
be done in one sitting. The issue is that certain procedures
|
|
|
|
have to be re-accomplished after a reboot if resuming LFS at
|
|
|
|
different points.</para>
|
|
|
|
|
|
|
|
<sect2>
|
2017-12-31 16:56:07 +00:00
|
|
|
<title>Chapters 1–4</title>
|
2016-05-17 02:06:38 +01:00
|
|
|
|
|
|
|
<para>These chapters are accomplished on the host system. When
|
|
|
|
restarting, be careful of the following:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2020-05-03 22:02:51 +01:00
|
|
|
<para>Procedures done as the root user after Section 2.4 need to
|
|
|
|
have the LFS environment variable set <emphasis>FOR THE ROOT
|
|
|
|
USER</emphasis>.</para>
|
2016-05-17 02:06:38 +01:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
2017-12-31 16:56:07 +00:00
|
|
|
<title>Chapter 5</title>
|
2016-05-17 02:06:38 +01:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
2020-05-03 22:02:51 +01:00
|
|
|
<para>The /mnt/lfs partition must be mounted.</para>
|
2016-05-17 02:06:38 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2020-05-03 22:02:51 +01:00
|
|
|
<para>This chapter includes three parts. The first one, from
|
|
|
|
<quote>Binutils Pass1</quote> to <quote>Stripping</quote>
|
|
|
|
must be done by user <emphasis>lfs</emphasis>. A
|
|
|
|
<command>su - lfs</command> needs to be done before any task in this
|
|
|
|
part. The second part, from <quote>Changing Ownership</quote> to
|
|
|
|
<quote>Entering the Chroot Environment</quote> must be done as the
|
|
|
|
root user, with LFS set for the root user. The third part, from
|
|
|
|
<quote>Creating Directories</quote> to the end of the chapter, is done
|
|
|
|
in the chroot environment. The same procedures as for chapter 6
|
|
|
|
apply.</para>
|
2016-05-17 02:06:38 +01:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
|
|
|
|
are critical. If there is any
|
|
|
|
doubt about installing a package, ensure any previously expanded
|
|
|
|
tarballs are removed, re-extract the package files, and complete all
|
|
|
|
instructions in that section.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
2017-12-31 16:56:07 +00:00
|
|
|
<title>Chapters 6–8</title>
|
2016-05-17 02:06:38 +01:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>The /mnt/lfs partition must be mounted.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para> When entering chroot, the LFS environment variable must be set
|
|
|
|
for root. The LFS variable is not used otherwise.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para> The virtual file systems must be mounted. This can be done
|
|
|
|
before or after entering chroot by changing to a host virtual terminal
|
|
|
|
and, as root, running the commands in
|
|
|
|
<xref linkend='ch-system-bindmount'/> and
|
|
|
|
<xref linkend='ch-system-kernfsmount'/>.</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|