[e5cd5e3] | 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">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[afcfd74] | 8 | <sect1 id="ch-partitioning-stages">
|
---|
[e5cd5e3] | 9 | <?dbhtml filename="stages.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Building LFS in Stages</title>
|
---|
| 12 |
|
---|
| 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>
|
---|
| 19 |
|
---|
| 20 | <sect2>
|
---|
[25332b5] | 21 | <title>Chapters 1–4</title>
|
---|
[e5cd5e3] | 22 |
|
---|
| 23 | <para>These chapters are accomplished on the host system. When
|
---|
| 24 | restarting, be careful of the following:</para>
|
---|
| 25 |
|
---|
| 26 | <itemizedlist>
|
---|
| 27 | <listitem>
|
---|
[efcb393] | 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>
|
---|
[e5cd5e3] | 31 | </listitem>
|
---|
| 32 | </itemizedlist>
|
---|
| 33 | </sect2>
|
---|
| 34 |
|
---|
| 35 | <sect2>
|
---|
[25332b5] | 36 | <title>Chapter 5</title>
|
---|
[e5cd5e3] | 37 |
|
---|
| 38 | <itemizedlist>
|
---|
| 39 | <listitem>
|
---|
[efcb393] | 40 | <para>The /mnt/lfs partition must be mounted.</para>
|
---|
[e5cd5e3] | 41 | </listitem>
|
---|
| 42 |
|
---|
| 43 | <listitem>
|
---|
[efcb393] | 44 | <para>This chapter includes three parts. The first one, from
|
---|
| 45 | <quote>Binutils Pass1</quote> to <quote>Stripping</quote>
|
---|
| 46 | must be done by user <emphasis>lfs</emphasis>. A
|
---|
| 47 | <command>su - lfs</command> needs to be done before any task in this
|
---|
| 48 | part. The second part, from <quote>Changing Ownership</quote> to
|
---|
| 49 | <quote>Entering the Chroot Environment</quote> must be done as the
|
---|
| 50 | root user, with LFS set for the root user. The third part, from
|
---|
| 51 | <quote>Creating Directories</quote> to the end of the chapter, is done
|
---|
| 52 | in the chroot environment. The same procedures as for chapter 6
|
---|
| 53 | apply.</para>
|
---|
[e5cd5e3] | 54 | </listitem>
|
---|
| 55 |
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
|
---|
| 58 | are critical. If there is any
|
---|
| 59 | doubt about installing a package, ensure any previously expanded
|
---|
| 60 | tarballs are removed, re-extract the package files, and complete all
|
---|
| 61 | instructions in that section.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 | <sect2>
|
---|
[25332b5] | 67 | <title>Chapters 6–8</title>
|
---|
[e5cd5e3] | 68 |
|
---|
| 69 | <itemizedlist>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>The /mnt/lfs partition must be mounted.</para>
|
---|
| 72 | </listitem>
|
---|
| 73 |
|
---|
| 74 | <listitem>
|
---|
| 75 | <para> When entering chroot, the LFS environment variable must be set
|
---|
| 76 | for root. The LFS variable is not used otherwise.</para>
|
---|
| 77 | </listitem>
|
---|
| 78 |
|
---|
| 79 | <listitem>
|
---|
| 80 | <para> The virtual file systems must be mounted. This can be done
|
---|
| 81 | before or after entering chroot by changing to a host virtual terminal
|
---|
| 82 | and, as root, running the commands in
|
---|
| 83 | <xref linkend='ch-system-bindmount'/> and
|
---|
| 84 | <xref linkend='ch-system-kernfsmount'/>.</para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 | </sect2>
|
---|
| 88 | </sect1>
|
---|