revisedchroot.xml 821 B

12345678910111213141516171819
  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>The reason being there is no longer any need to use programs from the
  11. <filename class="directory">/tools</filename> directory. However, we don't
  12. want to remove the <filename class="directory">/tools</filename> directory
  13. just yet. There is still some use for it towards the end of the book.</para>
  14. </sect1>