1 <sect1 id="ch06-revisedchroot">
2 <title>Revised chroot command</title>
3 <?dbhtml filename="revisedchroot.html" dir="chapter06"?>
5 <para>From now on when you exit the chroot environment and wish to re-enter
6 it, you need to run the following modified chroot command. The one at the
7 beginning of this chapter might not work anymore (if your host distribution
8 was based on glibc-2.2.x or older, the programs in <filename
9 class="directory">/static/bin</filename>, such as <filename>bash</filename>,
10 will not work anymore). The following chroot command will work irregardless
11 of your host distribution's Glibc version.</para>
13 <para>Additionally, now that all software has been installed there is no
14 need to use anything from the <filename
15 class="directory">/static</filename> directory anymore.</para>
17 <para><screen><userinput>chroot $LFS /usr/bin/env -i \
18 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
19 PATH=/bin:/usr/bin:/sbin:/usr/sbin \
20 /bin/bash --login</userinput></screen></para>