aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/revisedchroot.xml
blob: ee40f4b8df9a08d50e71248702b1d349fd66664e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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 should run the following modified chroot command.</para>

<para>Additionally, now that all software has been installed there is no
need to use anything from the <filename
class="directory">/tools</filename> directory anymore, so it may be deleted.
However, since the TCL, Expect, and DejaGNU packages only exist here, you
may want to reinstall them after removing the /tools directory.</para>

<para><screen><userinput>chroot $LFS /usr/bin/env -i \
&nbsp;&nbsp;&nbsp;&nbsp;HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
&nbsp;&nbsp;&nbsp;&nbsp;PATH=/bin:/usr/bin:/sbin:/usr/sbin \
&nbsp;&nbsp;&nbsp;&nbsp;/bin/bash --login</userinput></screen></para>

<para><screen><userinput>set +h</userinput></screen></para>

</sect1>