From ebecd08c0582ef9c01f784452f87f3a39cf40cdd Mon Sep 17 00:00:00 2001 From: David Bryant Date: Wed, 16 Nov 2022 13:15:01 -0600 Subject: Corrected grammar, spelling, and idiom in chapter 7. --- chapter07/chroot.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'chapter07/chroot.xml') diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml index 6404c0625..69bc6ce69 100644 --- a/chapter07/chroot.xml +++ b/chapter07/chroot.xml @@ -11,11 +11,11 @@ Entering the Chroot Environment Now that all the packages which are required to build the rest of the - needed tools are on the system, it is time to enter the chroot environment to - finish installing the remaining temporary tools. This environment will be in - use also for installing the final system. As user root, run the following command to enter the - environment that is, at the moment, populated with only the temporary + environment that is, at the moment, populated with nothing but temporary tools: chroot "$LFS" /usr/bin/env -i \ @@ -26,25 +26,25 @@ /bin/bash --login The -i option given to the env - command will clear all variables of the chroot environment. After that, only + command will clear all the variables in the chroot environment. After that, only the HOME, TERM, PS1, and PATH variables are set again. The - TERM=$TERM construct will set the TERM + TERM=$TERM construct sets the TERM variable inside chroot to the same value as outside chroot. This variable is - needed for programs like vim and less - to operate properly. If other variables are desired, such as + needed so programs like vim and less + can operate properly. If other variables are desired, such as CFLAGS or CXXFLAGS, this is a good place to set - them again. + them. From this point on, there is no need to use the - LFS variable anymore because all work will be restricted - to the LFS file system. This is because the Bash shell is told that + LFS variable any more because all work will be restricted + to the LFS file system; the chroot command tells the Bash shell that $LFS is now the root (/) directory. Notice that /tools/bin is not in the PATH. This means that the cross toolchain will no longer be - used in the chroot environment. + used. Note that the bash prompt will say I have no name! This is normal because the -- cgit v1.2.3-54-g00ecf