revisedchroot.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-revisedchroot">
  7. <title>Cleaning up</title>
  8. <?dbhtml filename="revisedchroot.html"?>
  9. <para>From now on, when you exit the chroot environment and wish to reenter
  10. it, you should use the following modified chroot command:</para>
  11. <screen><userinput>chroot "$LFS" /usr/bin/env -i \
  12. HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
  13. PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  14. /bin/bash --login</userinput></screen>
  15. <para>The reason for this is that, since the programs in <filename
  16. class="directory">/tools</filename> are no longer needed, you may want to
  17. delete the whole directory and regain the space. Before actually deleting the
  18. directory, exit from chroot and reenter it with the above command. Also, before
  19. removing <filename class="directory">/tools</filename>, you may want to tar it
  20. up and store it in a safe place, in case you want to build another LFS system
  21. soon.</para>
  22. <note><para>Removing <filename class="directory">/tools</filename> will also
  23. remove the temporary copies of Tcl, Expect and DejaGNU, which were used for
  24. running the toolchain tests. If you want to use these programs later on, you
  25. will need to recompile and re-install them. The installation instructions are
  26. the same as in <xref linkend="chapter-temporary-tools"/>, apart from changing
  27. the prefix from <filename class="directory">/tools</filename> to <filename class="directory">/usr</filename>. The
  28. BLFS book discusses a slightly different approach to installing Tcl, see
  29. <ulink url="&blfs-root;"/>.</para></note>
  30. <para>You may also want to move the packages and patches stored in <filename
  31. class="directory">/sources</filename> to a more usual location, such as
  32. <filename class="directory">/usr/src/packages</filename>, and remove the
  33. directory -- or simply delete the whole directory if you've burned its contents
  34. on a CD).</para>
  35. </sect1>