stages.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <sect1 id="stages">
  8. <?dbhtml filename="stages.html"?>
  9. <title>分阶段构建 LFS</title>
  10. <!--para>LFS is designed to be built in one session. That is, the
  11. instructions assume that the system will not be shut down
  12. during the process. That does not mean that the system has to
  13. be done in one sitting. The issue is that certain procedures
  14. have to be re-accomplished after a reboot if resuming LFS at
  15. different points.</para-->
  16. <para>LFS 被设计为在一次会话中构建完成。换句话说,本书的指令假设,
  17. 在整个编译过程中,系统不会关闭或重启。当然,
  18. 构建过程不需要严格地一气呵成,只要注意在重新启动后,继续编译 LFS
  19. 时,根据构建进度的不同,可能需要再次进行某些操作。</para>
  20. <sect2>
  21. <title>第 &nbsp;1&ndash;4 章</title>
  22. <!--para>These chapters are accomplished on the host system. When
  23. restarting, be careful of the following:</para-->
  24. <para>这些章节是在宿主系统完成的。在重启后,注意下列事项:</para>
  25. <itemizedlist>
  26. <listitem>
  27. <!--para>Procedures done as the root user after Section 2.4 need to
  28. have the LFS environment variable set <emphasis>FOR THE ROOT
  29. USER</emphasis>.</para-->
  30. <para>在<xref linkend="space-creatingpartition"/>之后,
  31. 以 root 用户身份执行的步骤要求 LFS 环境变量已经
  32. <emphasis>为 root 用户</emphasis>设置好。</para>
  33. </listitem>
  34. </itemizedlist>
  35. </sect2>
  36. <sect2>
  37. <title>第 5 章</title>
  38. <itemizedlist>
  39. <listitem>
  40. <!--para>The /mnt/lfs partition must be mounted.</para-->
  41. <para>/mnt/lfs 分区需要重新挂载。</para>
  42. </listitem>
  43. <listitem>
  44. <!--para><emphasis>ALL</emphasis> instructions in Chapter&nbsp;5
  45. must be done by user <emphasis>lfs</emphasis>.
  46. A <command>su - lfs</command> needs to be done before any
  47. task in Chapter&nbsp;5.</para-->
  48. <para>第 5 章的<emphasis>所有</emphasis>步骤必须由用户
  49. <emphasis>lfs</emphasis> 完成。在执行第 5 章的任务时,
  50. 必须先执行<command>su - lfs</command>命令。</para>
  51. </listitem>
  52. <listitem>
  53. <para><xref linkend='ch-tools-generalinstructions'/>
  54. 中的要求是关键的。如果在安装软件包时感觉不对劲,
  55. 确认之前解压的源码包已经被删除,然后重新解压源码包的文件,
  56. 重新执行相应一节的所有命令。</para>
  57. <!--para>
  58. are critical. If there is any
  59. doubt about installing a package, ensure any previously expanded
  60. tarballs are removed, re-extract the package files, and complete all
  61. instructions in that section.</para-->
  62. </listitem>
  63. </itemizedlist>
  64. </sect2>
  65. <sect2>
  66. <title>第 6&ndash;8 章</title>
  67. <itemizedlist>
  68. <listitem>
  69. <!--para>The /mnt/lfs partition must be mounted.</para-->
  70. <para>/mnt/lfs 分区需要重新挂载。</para>
  71. </listitem>
  72. <listitem>
  73. <!--para> When entering chroot, the LFS environment variable must be set
  74. for root. The LFS variable is not used otherwise.</para-->
  75. <para>在进入 chroot 环境时,LFS 环境变量必须为 root 设置好。
  76. 之后就不需要 LFS 变量。</para>
  77. </listitem>
  78. <listitem>
  79. <!--para> The virtual file systems must be mounted. This can be done
  80. before or after entering chroot by changing to a host virtual terminal
  81. and, as root, running the commands in
  82. <xref linkend='ch-system-bindmount'/> and
  83. <xref linkend='ch-system-kernfsmount'/>.</para-->
  84. <para>虚拟文件系统必须挂载好,在进入 chroot 环境之前,请执行
  85. <xref linkend='ch-system-bindmount'/> 和
  86. <xref linkend='ch-system-kernfsmount'/> 中的命令。</para>
  87. </listitem>
  88. </itemizedlist>
  89. </sect2>
  90. </sect1>