From 90e3cb3f0e14cadecc0edf2b6de96ee432bc60de Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sun, 1 Feb 2004 21:49:10 +0000 Subject: Replacing several tags by . git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3203 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'chapter06/chapter06.xml') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 6364740be..f97d4d777 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -68,13 +68,12 @@ with a series of short descriptions of these. It is time to enter the chroot environment in order to begin installing the packages we need. Before you can chroot, however, you need to become root, since only root -can execute the chroot command. +can execute the chroot command. Just like earlier, ensure the LFS environment variable is set up properly by running echo $LFS and ensuring it shows the path to your LFS partition's mount point, which is -/mnt/lfs if you followed our -example. +/mnt/lfs if you followed our example. Become root and run the following command to enter the chroot environment: @@ -84,12 +83,12 @@ to enter the chroot environment:     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \     /tools/bin/bash --login +h -The -i option given to the -env command will clear all variables of the chroot +The -i option given to the +env command will clear all variables of the chroot environment. After that, only the HOME, TERM, PS1 and PATH variables are set again. The TERM=$TERM construct will set the TERM variable inside chroot to the same value as outside chroot; this variable is needed for programs -like vim and less to operate +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. @@ -103,8 +102,8 @@ the chroot command. last in the PATH. This means that a temporary tool will not be used any more as soon as its final version is installed. Well, at least when the shell doesn't remember the locations of executed binaries -- for this reason hashing -is switched off by passing the +h option to -bash. +is switched off by passing the +h option to +bash. You have to make sure all the commands in the rest of this chapter and in the following chapters are run from within the chroot environment. @@ -281,15 +280,15 @@ will now work. exec /tools/bin/bash --login +h -Note the use of the +h directive. This tells -bash not to use its internal path hashing. Without this -directive, bash would remember the paths to binaries it +Note the use of the +h directive. This tells +bash not to use its internal path hashing. Without this +directive, bash would remember the paths to binaries it has executed. Since we want to use our newly compiled binaries as soon as they are installed, we turn off this function for the duration of this chapter. -The login, agetty and -init programs (and some others) use a number of log +The login, agetty and +init programs (and some others) use a number of log files to record information such as who was logged into the system and when. These programs, however, won't write to the log files if they don't already exist. Initialize the log files and give them their proper permissions: @@ -341,7 +340,7 @@ identical. From now on every compiled program will link only against the libraries in /usr/lib and /lib. The extra -INSTALL=/tools/bin/install is needed because the Makefile +INSTALL=/tools/bin/install is needed because the Makefile created during the second pass still contains the reference to /usr/bin/install, which we obviously haven't installed yet. Some host distributions contain a ginstall -- cgit v1.2.3-54-g00ecf