diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-09-28 21:08:29 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-09-28 21:08:29 +0000 |
commit | 2c094d60db777dce20fd4eccf4996299c2a0dfe0 (patch) | |
tree | 6059aa8ca1a67a6e974f8802b9af66a7330272a4 /chapter06/chroot.xml | |
parent | f5cc1c171ba0c9aece1fe1046ce4dbaed8850e9f (diff) |
Applied Bill Maltby's grammar patch. Changed $LFS to LFS where appropriate. Internal XML cleanup: removed double spacing where appropriate.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2138 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/chroot.xml')
-rw-r--r-- | chapter06/chroot.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index dd220020a..ad297a215 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -1,14 +1,14 @@ <sect1 id="ch06-chroot"> -<title>Entering the chroot'ed environment</title> +<title>Entering the chroot environment</title> <?dbhtml filename="chroot.html" dir="chapter06"?> -<para>It is time to enter the chroot'ed environment in order to begin installing +<para>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 <emphasis>root</emphasis>, since only <emphasis>root</emphasis> can execute the <userinput>chroot</userinput> command.</para> <para>Become <emphasis>root</emphasis> and run the following command -to enter the chroot'ed environment:</para> +to enter the chroot environment:</para> <para><screen><userinput>chroot $LFS /static/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ @@ -17,20 +17,20 @@ to enter the chroot'ed environment:</para> </para> <para>The <userinput>-i</userinput> option given to the -<userinput>env</userinput> command will clear all variables of the chroot'ed +<userinput>env</userinput> 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 properly. If you need other variables present, such as CFLAGS or CXXFLAGS, this is a good place to set them again.</para> -<para>From this point on there's no need anymore to use the $LFS variable, +<para>From this point on there's no need anymore to use the LFS variable, because everything you do will be restricted to the LFS file system -- since what the shell thinks is <filename class="directory">/</filename> is actually <filename class="directory">/mnt/lfs</filename>.</para> <para>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'ed environment. +in the following chapters are run from within the chroot environment. If you ever leave this environment for any reason (rebooting for example), you must remember to again enter chroot and mount proc (discussed later) before continuing with the installations.</para> |