source: chapter02/stages.xml@ 0ba2ee5a

11.3 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 0ba2ee5a was 294ea05, checked in by David Bryant <davidbryant@…>, 21 months ago

Clarified verbiage here and there. Used the present perfect tense instead
of the simple present to make the order of events clearer.

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[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
[294ea05]15 during the process. This does not mean that the system has to
16 be built in one sitting. The issue is that certain procedures
17 must be repeated after a reboot when resuming LFS at
[e5cd5e3]18 different points.</para>
19
20 <sect2>
[25332b5]21 <title>Chapters&nbsp;1&ndash;4</title>
[e5cd5e3]22
[294ea05]23 <para>These chapters run commands on the host system. When
24 restarting, be certain of one thing:</para>
[a04b192f]25
[e5cd5e3]26 <itemizedlist>
27 <listitem>
[294ea05]28 <para>Procedures performed as the
[34fe7e0]29 <systemitem class="username">root</systemitem> user after Section
[294ea05]30 2.4 must have the LFS environment variable set
[34fe7e0]31 <emphasis>FOR THE ROOT USER</emphasis>.</para>
[e5cd5e3]32 </listitem>
33 </itemizedlist>
34 </sect2>
[408fb782]35
[e5cd5e3]36 <sect2>
[9254148]37 <title>Chapters&nbsp;5&ndash;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>.
[294ea05]47 A <command>su - lfs</command> command must be issued before performing any task in these
[9254148]48 chapters. If you don't do that, you are at risk of installing packages to the
[b99b7d3]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
[294ea05]55 doubt a package has been installed correctly, ensure the previously expanded
56 tarball has been removed, then re-extract the package, and complete all
[9254148]57 the instructions in that section.</para>
[e5cd5e3]58 </listitem>
59 </itemizedlist>
60 </sect2>
61
62 <sect2>
[9254148]63 <title>Chapters&nbsp;7&ndash;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
[9254148]72 <quote>Entering the Chroot Environment</quote>, must be done as the
[34fe7e0]73 <systemitem class="username">root</systemitem> user, with the LFS
[e286d8db]74 environment variable set for the &root; user.</para>
[eb8890f]75 </listitem>
76
[e5cd5e3]77 <listitem>
78 <para> When entering chroot, the LFS environment variable must be set
[34fe7e0]79 for <systemitem class="username">root</systemitem>. The LFS
[294ea05]80 variable is not used after the chroot environment has been entered.</para>
[e5cd5e3]81 </listitem>
82
83 <listitem>
84 <para> The virtual file systems must be mounted. This can be done
85 before or after entering chroot by changing to a host virtual terminal
[34fe7e0]86 and, as <systemitem class="username">root</systemitem>, running the
[a04b192f]87 commands in
88 <xref linkend='ch-tools-bindmount'/> and
[bfab1b2]89 <xref linkend='ch-tools-kernfsmount'/>.</para>
[e5cd5e3]90 </listitem>
91 </itemizedlist>
92 </sect2>
93</sect1>
Note: See TracBrowser for help on using the repository browser.