aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/chroot.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/chroot.sgml')
-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