From 4af94fb7b2faa7b2c0fd43a15da7e4d2cc1cfbf9 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 14 Feb 2001 02:11:13 +0000 Subject: chroot command now sets the $TERM variable properly git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@159 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chroot.sgml | 10 ++++++++-- 1 file 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,11 +16,17 @@ actually /mnt/lfs but the shell doesn't know that).
cd $LFS && - chroot $LFS /usr/bin/env -i HOME=/root /bin/bash - --login + chroot $LFS /usr/bin/env -i HOME=/root \ + TERM=`echo $TERM` /bin/bash --login
+ +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. + + 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 -- cgit v1.2.3-54-g00ecf