revisedchroot.xml 1.2 KB

123456789101112131415161718192021222324252627
  1. <sect1 id="ch06-revisedchroot">
  2. <title>Revised chroot command</title>
  3. <?dbhtml filename="revisedchroot.html" dir="chapter06"?>
  4. <para>From now on when you exit the chroot environment and wish to re-enter
  5. it, you should run the following modified chroot command:</para>
  6. <screen><userinput>chroot $LFS /usr/bin/env -i \
  7. &nbsp;&nbsp;&nbsp;&nbsp;HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
  8. &nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  9. &nbsp;&nbsp;&nbsp;&nbsp;/bin/bash --login</userinput></screen>
  10. <para>Additionally, now that all software has been installed, there is no longer
  11. a need for the <filename class="directory">/tools</filename> directory. You may
  12. delete it. As this will also remove the temporary copies of Tcl, Expect and
  13. DejaGnu, which were used for running the toolchain tests, you will need to
  14. recompile and re-install them on your LFS system if you want to use these
  15. programs later.</para>
  16. <para>Also you may now want to move the contents of
  17. <filename class="directory">/sources</filename> to
  18. <filename class="directory">/usr/src/packages</filename> or something similar
  19. (or simply delete them if you've burned them on a CD) and delete the
  20. directory.</para>
  21. </sect1>