[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>
|
---|
[34fe7e0] | 28 | <para>Procedures done as the
|
---|
| 29 | <systemitem class="username">root</systemitem> user after Section
|
---|
| 30 | 2.4 need to have the LFS environment variable set
|
---|
| 31 | <emphasis>FOR THE ROOT USER</emphasis>.</para>
|
---|
[e5cd5e3] | 32 | </listitem>
|
---|
| 33 | </itemizedlist>
|
---|
| 34 | </sect2>
|
---|
| 35 |
|
---|
| 36 | <sect2>
|
---|
[eb8890f] | 37 | <title>Chapter 5–6</title>
|
---|
[e5cd5e3] | 38 |
|
---|
| 39 | <itemizedlist>
|
---|
| 40 | <listitem>
|
---|
[efcb393] | 41 | <para>The /mnt/lfs partition must be mounted.</para>
|
---|
[e5cd5e3] | 42 | </listitem>
|
---|
| 43 |
|
---|
| 44 | <listitem>
|
---|
[34fe7e0] | 45 | <para>These two chapters <emphasis>must</emphasis> be done as user
|
---|
| 46 | <systemitem class="username">lfs</systemitem>.
|
---|
[b99b7d3] | 47 | A <command>su - lfs</command> needs to be done before any task in these
|
---|
| 48 | chapters. Failing to do that, you are at risk of installing packages to the
|
---|
| 49 | host, and potentially rendering it unusable.</para>
|
---|
[e5cd5e3] | 50 | </listitem>
|
---|
| 51 |
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
|
---|
| 54 | are critical. If there is any
|
---|
| 55 | doubt about installing a package, ensure any previously expanded
|
---|
[b99b7d3] | 56 | tarballs are removed, then re-extract the package files, and complete all
|
---|
[e5cd5e3] | 57 | instructions in that section.</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2>
|
---|
[eb8890f] | 63 | <title>Chapter 7–10</title>
|
---|
[e5cd5e3] | 64 |
|
---|
| 65 | <itemizedlist>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>The /mnt/lfs partition must be mounted.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 |
|
---|
[eb8890f] | 70 | <listitem>
|
---|
| 71 | <para>A few operations, from <quote>Changing Ownership</quote> to
|
---|
[b99b7d3] | 72 | <quote>Entering the Chroot Environment</quote> must be done as the
|
---|
[34fe7e0] | 73 | <systemitem class="username">root</systemitem> user, with the LFS
|
---|
| 74 | environment variable set for the
|
---|
| 75 | <systemitem class="username">root</systemitem>user.</para>
|
---|
[eb8890f] | 76 | </listitem>
|
---|
| 77 |
|
---|
[e5cd5e3] | 78 | <listitem>
|
---|
| 79 | <para> When entering chroot, the LFS environment variable must be set
|
---|
[34fe7e0] | 80 | for <systemitem class="username">root</systemitem>. The LFS
|
---|
| 81 | variable is not used afterwards.</para>
|
---|
[e5cd5e3] | 82 | </listitem>
|
---|
| 83 |
|
---|
| 84 | <listitem>
|
---|
| 85 | <para> The virtual file systems must be mounted. This can be done
|
---|
| 86 | before or after entering chroot by changing to a host virtual terminal
|
---|
[34fe7e0] | 87 | and, as <systemitem class="username">root</systemitem>, running the
|
---|
| 88 | commands in
|
---|
[bfab1b2] | 89 | <xref linkend='ch-tools-bindmount'/> and
|
---|
| 90 | <xref linkend='ch-tools-kernfsmount'/>.</para>
|
---|
[e5cd5e3] | 91 | </listitem>
|
---|
| 92 | </itemizedlist>
|
---|
| 93 | </sect2>
|
---|
| 94 | </sect1>
|
---|