| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | 
							- <?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="ch-system-revisedchroot">
 
-   <?dbhtml filename="revisedchroot.html"?>
 
-   <title>清理系统</title>
 
-   <para>最后,清理在执行测试的过程中遗留的一些文件:</para>
 
- <screen><userinput>rm -rf /tmp/*</userinput></screen>
 
-   <para>现在需要登出,并使用新的 chroot 命令行重新进入 chroot 环境。
 
-   从现在起,在退出并重新进入 chroot 环境时,
 
-   要使用下面的修改过的 chroot 命令:</para>
 
- <screen role="nodump"><userinput>logout
 
- chroot "$LFS" /usr/bin/env -i          \
 
-     HOME=/root TERM="$TERM"            \
 
-     PS1='(lfs chroot) \u:\w\$ '        \
 
-     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
 
-     /bin/bash --login</userinput></screen>
 
-   <para>这是由于 <filename class="directory">/tools</filename>
 
-   	  中的程序不再必要。因此,如果您希望的话,可以删除
 
-   	  <filename class="directory">/tools</filename> 目录。</para>
 
-   <note>
 
- 	  <para>删除 <filename class="directory">/tools</filename> 也会移除
 
- 		  Tcl、Expect 和 DejaGNU 的临时拷贝,它们之前被用于进行工具链测试。
 
- 		  如果您之后仍然需要它们,必须重新编译和安装这些软件包。
 
- 		  BLFS 手册包含了安装它们的说明 (见 <ulink url="&blfs-root;"/>)。
 
- 	  </para>
 
-   </note>
 
-   <!--para>If the virtual kernel file systems have been unmounted, either manually
 
-   or through a reboot, ensure that the virtual kernel file systems are mounted
 
-   when reentering the chroot. This process was explained in <xref -->
 
-   <para>如果解挂了虚拟内核文件系统,
 
- 	  必须通过手动或重启系统的方式重新挂载它们,保证在进入 chroot
 
- 	  时它们已经挂载好,正如 <xref linkend="ch-system-bindmount"/> 和
 
- 	  <xref linkend="ch-system-kernfsmount"/> 解释的那样。</para>
 
-   <!--para>There were several static libraries that were not suppressed earlier
 
-   in the chapter in order to satisfy the regression tests in several packages. These 
 
-   libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib.  If desired,
 
-   remove them now:</para-->
 
-   <para>在本章的前几节中,有几个静态库的安装没有被禁止,
 
- 	  目的是满足一些软件包的退化测试需要。这些库来自于 binutils、bzip2、
 
- 	  e2fsprogs、flex、libtool 和 zlib。如果您希望的话,可以现在删除它们:
 
-   </para>
 
- <screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
 
- rm -f /usr/lib/libbz2.a
 
- rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
 
- rm -f /usr/lib/libltdl.a
 
- rm -f /usr/lib/libfl.a
 
- rm -f /usr/lib/libz.a</userinput></screen>
 
-   <para>/usr/lib 和 /usr/libexec 目录中还有一些扩展名为 .la 的文件。
 
- 	  它们是 <quote>libtool 档案</quote> 文件,
 
- 	  在 Linux 系统上一般是不必要的。截至目前,
 
- 	  已经安装的 .la 文件中没有一个是必要的。执行以下命令删除它们:</para>
 
- <screen><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput></screen>
 
-    <para>如果希望了解更多关于 libtool 档案文件的信息,参阅 <ulink
 
-    url="&blfs-book;/introduction/la-files.html">BLFS 章节 "About Libtool
 
-    Archive (.la) files"</ulink>。</para>
 
- </sect1>
 
 
  |