|
@@ -67,7 +67,7 @@ to enter the chroot environment:</para>
|
|
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
|
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
|
|
- /tools/bin/bash --login</userinput></screen>
|
|
|
|
|
|
+ /tools/bin/bash --login +h</userinput></screen>
|
|
|
|
|
|
<para>The <userinput>-i</userinput> option given to the
|
|
<para>The <userinput>-i</userinput> option given to the
|
|
<userinput>env</userinput> command will clear all variables of the chroot
|
|
<userinput>env</userinput> command will clear all variables of the chroot
|
|
@@ -88,7 +88,8 @@ the chroot command.</para>
|
|
last in the PATH. This means that a temporary tool will not be used any more
|
|
last in the PATH. This means that a temporary tool will not be used any more
|
|
as soon as its final version is installed. Well, at least when the shell
|
|
as soon as its final version is installed. Well, at least when the shell
|
|
doesn't remember the locations of executed binaries -- for this reason hashing
|
|
doesn't remember the locations of executed binaries -- for this reason hashing
|
|
-is switched off a bit further on.</para>
|
|
|
|
|
|
+is switched off by passing the <userinput>+h</userinput> option to
|
|
|
|
+<userinput>bash</userinput>.</para>
|
|
|
|
|
|
<para>You have to make sure all the commands in the rest of this chapter and
|
|
<para>You have to make sure all the commands in the rest of this chapter and
|
|
in the following chapters are run from within the chroot environment.
|
|
in the following chapters are run from within the chroot environment.
|