revisedchroot.xml 955 B

123456789101112131415161718192021
  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. <para>Additionally, now that all software has been installed, there is no longer
  7. a need for the <filename class="directory">/tools</filename> directory. You may
  8. delete it. This will also remove the temporary copies of Tcl, Expect and
  9. DejaGnu, which were used for running tests on the software as it was built. If
  10. you want to use these programs later, you will need to compile and install them
  11. on your new LFS system.</para>
  12. <para><screen><userinput>chroot $LFS /usr/bin/env -i \
  13. &nbsp;&nbsp;&nbsp;&nbsp;HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
  14. &nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  15. &nbsp;&nbsp;&nbsp;&nbsp;/bin/bash --login</userinput></screen></para>
  16. </sect1>