aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-02-14 02:11:13 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-02-14 02:11:13 +0000
commit4af94fb7b2faa7b2c0fd43a15da7e4d2cc1cfbf9 (patch)
treedc9fa734b9ea868a9033d5b90ac85799813e52d6 /chapter06
parentca3fb0014f0de002493591b3b0b4bb7a88daafcc (diff)
chroot command now sets the $TERM variable properly
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@159 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/chroot.sgml10
1 files changed, 8 insertions, 2 deletions
diff --git a/chapter06/chroot.sgml b/chapter06/chroot.sgml
index 3c5abcc93..af491edfb 100644
--- a/chapter06/chroot.sgml
+++ b/chapter06/chroot.sgml
@@ -16,12 +16,18 @@ actually /mnt/lfs but the shell doesn't know that).
<blockquote><literallayout>
<userinput>cd $LFS &amp;&amp;</userinput>
- <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
- --login</userinput>
+ <userinput>chroot $LFS /usr/bin/env -i HOME=/root \
+ TERM=`echo $TERM` /bin/bash --login</userinput>
</literallayout></blockquote>
<para>
+The TERM=`echo $TERM` construction will set the $TERM value inside
+chroot to the same value as outside chroot which is needed for programs
+like vim and less to operate properly.
+</para>
+
+<para>
Now that we are inside a chroot'ed environment, we can continue to
install all the basic system software. Make sure you execute all the
following commands in this and following chapters from within the