mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 05:27:39 +00:00
b720334a3f
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2324 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
24 lines
1.0 KiB
XML
24 lines
1.0 KiB
XML
<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
|
|
it, you need to run the following modified chroot command. The one at the
|
|
beginning of this chapter might not work anymore (if your host distribution
|
|
was based on glibc-2.2.x or older, the programs in <filename
|
|
class="directory">/static/bin</filename>, such as <filename>bash</filename>,
|
|
will not work anymore). The following chroot command will work irregardless
|
|
of your host distribution's Glibc version.</para>
|
|
|
|
<para>Additionally, now that all software has been installed there is no
|
|
need to use anything from the <filename
|
|
class="directory">/static</filename> directory anymore.</para>
|
|
|
|
<para><screen><userinput>chroot $LFS /usr/bin/env -i \
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
|
/bin/bash --login</userinput></screen></para>
|
|
|
|
</sect1>
|
|
|