aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/chroot.xml
diff options
context:
space:
mode:
authorJeremy Utley <jeremy@linuxfromscratch.org>2003-09-17 18:06:39 +0000
committerJeremy Utley <jeremy@linuxfromscratch.org>2003-09-17 18:06:39 +0000
commite2bd9bf1ec06ebbdb21527843e0caa42e57cab43 (patch)
tree85aaf5bdd40ce3e3d134fee47cd2c14ee54b34f4 /chapter06/chroot.xml
parentd1391f03869269e3fa6717876a92e6f6ba13c0c8 (diff)
Merged the bash --login and set +h directives
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2832 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/chroot.xml')
-rw-r--r--chapter06/chroot.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml
index 195242c35..2259dc7a4 100644
--- a/chapter06/chroot.xml
+++ b/chapter06/chroot.xml
@@ -26,6 +26,11 @@ to the same value as outside chroot; this variable is needed for programs
like vim and less to operate properly. If you need other variables present,
such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para>
+<para>Also note the use of the set +h directive. This tells bash to not use
+it's internal path hashing. Without this directive, bash will remember paths
+to binaries. Since as we go thru chapter 6, we want to use our newly compiled
+binaries as soon as they are installed, we turn off this function.</para>
+
<para>From this point on there's no need to use the LFS variable anymore,
because everything you do will be restricted to the LFS file system -- since
what the shell thinks is <filename class="directory">/</filename> is actually