| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | <?xml version="1.0" encoding="UTF-8"?><!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="stages">  <?dbhtml filename="stages.html"?>  <title>分阶段构建 LFS</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-->  <para>LFS 被设计为在一次会话中构建完成。换句话说,本书的指令假设,	  在整个编译过程中,系统不会关闭或重启。当然,	  构建过程不需要严格地一气呵成,只要注意在重新启动后,继续编译 LFS	  时,根据构建进度的不同,可能需要再次进行某些操作。</para>  <sect2>  <title>第  1–4 章</title>    <!--para>These chapters are accomplished on the host system.  When    restarting, be careful of the following:</para-->	<para>这些章节是在宿主系统完成的。在重启后,注意下列事项:</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-->		 <para>在<xref linkend="space-creatingpartition"/>之后,			 以 root 用户身份执行的步骤要求 LFS 环境变量已经			 <emphasis>为 root 用户</emphasis>设置好。</para>      </listitem>    </itemizedlist>  </sect2>    <sect2>  <title>第 5 章</title>    <itemizedlist>      <listitem>         <!--para>The /mnt/lfs partition must be mounted.</para-->	     <para>/mnt/lfs 分区需要重新挂载。</para>      </listitem>      <listitem>         <!--para><emphasis>ALL</emphasis> instructions in Chapter 5          must be done by user <emphasis>lfs</emphasis>.           A  <command>su - lfs</command> needs to be done before any 		 task in Chapter 5.</para-->		 <para>第 5 章的<emphasis>所有</emphasis>步骤必须由用户			 <emphasis>lfs</emphasis> 完成。在执行第 5 章的任务时,			 必须先执行<command>su - lfs</command>命令。</para>      </listitem>      <listitem>		  <para><xref linkend='ch-tools-generalinstructions'/>			  中的要求是关键的。如果在安装软件包时感觉不对劲,			  确认之前解压的源码包已经被删除,然后重新解压源码包的文件,			  重新执行相应一节的所有命令。</para>		  <!--para>         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>  <title>第 6–8 章</title>    <itemizedlist>      <listitem>         <!--para>The /mnt/lfs partition must be mounted.</para-->         <para>/mnt/lfs 分区需要重新挂载。</para>      </listitem>      <listitem>         <!--para> When entering chroot, the LFS environment variable must be set         for root.  The LFS variable is not used otherwise.</para-->		<para>在进入 chroot 环境时,LFS 环境变量必须为 root 设置好。			之后就不需要 LFS 变量。</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-->		<para>虚拟文件系统必须挂载好,在进入 chroot 环境之前,请执行			<xref linkend='ch-system-bindmount'/> 和			<xref linkend='ch-system-kernfsmount'/> 中的命令。</para>      </listitem>    </itemizedlist>  </sect2></sect1>
 |