aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02/stages.xml
blob: 23348a885b493e098f9d008720ce65fbdf303383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?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;
]>

<sect1 id="ch-partitioning-stages">
  <?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>
  <title>Chapters&nbsp;1&ndash;4</title>

    <para>These chapters are accomplished on the host system.  When
    restarting, be careful of the following:</para>
  
    <itemizedlist>
      <listitem>
        <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>
      </listitem>
    </itemizedlist>
  </sect2>
  
  <sect2>
  <title>Chapter&nbsp;5&ndash;6</title>

    <itemizedlist>
      <listitem>
        <para>The /mnt/lfs partition must be mounted.</para>
      </listitem>

      <listitem>
        <para>Threse two chapters must be done as user <emphasis>lfs</emphasis>.
        A <command>su - lfs</command> needs to be done before any task in these
        chapters. Failing to do that, you are at risk of installing packages to the
        host, and potentially rendering it unusable.</para>
      </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, then re-extract the package files, and complete all
         instructions in that section.</para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
  <title>Chapter&nbsp;7&ndash;10</title>

    <itemizedlist>
      <listitem>
         <para>The /mnt/lfs partition must be mounted.</para>
      </listitem>

      <listitem>
        <para>A few operations, from <quote>Changing Ownership</quote> to
        <quote>Entering the Chroot Environment</quote> must be done as the
        root user, with the LFS envirnment variable set for the root user.</para>
      </listitem>

      <listitem>
         <para> When entering chroot, the LFS environment variable must be set
         for root. The LFS variable is not used afterwards.</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-tools-bindmount'/> and 
         <xref linkend='ch-tools-kernfsmount'/>.</para>
      </listitem>
    </itemizedlist>
  </sect2>
</sect1>