Переглянути джерело

chapter02: Translate stages page

Xi Ruoyao 7 роки тому
батько
коміт
abe9943bf2
1 змінених файлів з 43 додано та 21 видалено
  1. 43 21
      chapter02/stages.xml

+ 43 - 21
chapter02/stages.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?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">
@@ -8,74 +8,96 @@
 <sect1 id="stages">
   <?dbhtml filename="stages.html"?>
 
-  <title>Building LFS in Stages</title>
+  <title>分阶段构建 LFS</title>
 
-  <para>LFS is designed to be built in one session.  That is, the
+  <!--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>
+  different points.</para-->
+  <para>LFS 被设计为在一次会话中构建完成。换句话说,本书的指令假设,
+	  在整个编译过程中,系统不会被关机或重启。当然,
+	  构建过程不需要严格地一气呵成,只要注意在重新启动后,继续编译 LFS
+	  时,根据构建进度的不同,某些操作可能需要重新进行。</para>
 
   <sect2>
-  <title>Chapters&nbsp;1&ndash;4</title>
+  <title>第 &nbsp;1&ndash;4 章</title>
 
-    <para>These chapters are accomplished on the host system.  When
-    restarting, be careful of the following:</para>
+    <!--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 
+         <!--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>
+         USER</emphasis>.</para-->
+		 <para>在<xref linkend="space-creatingpartition"/>之后,
+			 以 root 用户身份执行的步骤要求 LFS 环境变量
+			 已经<emphasis>为 root 用户</emphasis>设置好。</para>
       </listitem>
     </itemizedlist>
   </sect2>
   
   <sect2>
-  <title>Chapter&nbsp;5</title>
+  <title>第 5 章</title>
 
     <itemizedlist>
       <listitem>
-         <para>The /mnt/lfs partition must be mounted.</para>
+         <!--para>The /mnt/lfs partition must be mounted.</para-->
+	     <para>/mnt/lfs 分区需要重新挂载。</para>
       </listitem>
 
       <listitem>
-         <para><emphasis>ALL</emphasis> instructions in Chapter&nbsp;5 
+         <!--para><emphasis>ALL</emphasis> instructions in Chapter&nbsp;5 
          must be done by user <emphasis>lfs</emphasis>.  
          A  <command>su - lfs</command> needs to be done before any 
-         task in Chapter&nbsp;5.</para>
+		 task in Chapter&nbsp;5.</para-->
+		 <para>第 5 章的<emphasis>所有</emphasis>步骤必须由用户
+			 <emphasis>lfs</emphasis> 完成。在执行第 5 章的任务时,
+			 必须先执行<command>su - lfs</command>命令。</para>
       </listitem>
 
       <listitem>
-         <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
+		  <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>
+         instructions in that section.</para-->
       </listitem>
     </itemizedlist>
   </sect2>
 
   <sect2>
-  <title>Chapters&nbsp;6&ndash;8</title>
+  <title>第 6&ndash;8 章</title>
 
     <itemizedlist>
       <listitem>
-         <para>The /mnt/lfs partition must be mounted.</para>
+         <!--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> 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
+         <!--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>
+         <xref linkend='ch-system-kernfsmount'/>.</para-->
+		<para>虚拟文件系统必须挂载好,在进入 chroot 环境之前,请执行
+			<xref linkend='ch-system-bindmount'/> 和
+			<xref linkend='ch-system-kernfsmount'/> 中的命令。</para>
       </listitem>
     </itemizedlist>
   </sect2>