2003-01-10 15:18:54 +00:00
|
|
|
<sect1 id="ch06-revisedchroot">
|
|
|
|
<title>Revised chroot command</title>
|
|
|
|
<?dbhtml filename="revisedchroot.html" dir="chapter06"?>
|
|
|
|
|
|
|
|
<para>From now on when you exit the chroot environment and wish to re-enter
|
2003-10-15 23:39:23 +01:00
|
|
|
it, you should run the following modified chroot command:</para>
|
2003-01-10 15:18:54 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>chroot $LFS /usr/bin/env -i \
|
2003-01-10 15:18:54 +00:00
|
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
2003-10-10 00:22:07 +01:00
|
|
|
/bin/bash --login</userinput></screen>
|
2003-01-10 15:18:54 +00:00
|
|
|
|
2003-10-16 02:02:39 +01:00
|
|
|
<para>The reason being there is no longer any need to use programs from the
|
|
|
|
<filename class="directory">/tools</filename> directory. However, we don't
|
|
|
|
want to remove the <filename class="directory">/tools</filename> directory
|
|
|
|
just yet. There is still some use for it towards the end of the book.</para>
|
2003-10-15 23:39:23 +01:00
|
|
|
|
2003-01-10 15:18:54 +00:00
|
|
|
</sect1>
|
|
|
|
|