diff options
author | Alex Gronenwoud <alex@linuxfromscratch.org> | 2003-10-22 22:26:46 +0000 |
---|---|---|
committer | Alex Gronenwoud <alex@linuxfromscratch.org> | 2003-10-22 22:26:46 +0000 |
commit | 360e2c43cd050de14a654927da9a7610af9e38ce (patch) | |
tree | fa36484dc5954a41335c6ec7ddf0b305c020129d /chapter06/chroot.xml | |
parent | 1612f40eb9f1b8ea766ea308e40d6b3fe14f6fc5 (diff) |
Adding some markup and doing miscellaneous shuffles.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3029 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/chroot.xml')
-rw-r--r-- | chapter06/chroot.xml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index 25fc85295..b7f0d5a72 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -21,20 +21,14 @@ to enter the chroot environment:</para> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login</userinput></screen> -<screen><userinput>set +h</userinput></screen> - <para>The <userinput>-i</userinput> option given to the <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>Also note the use of the set +h directive. This tells bash to not use -its internal path hashing. Without this directive, bash will remember paths -to binaries. Since as we go thru chapter 6, we want to use our newly compiled -binaries as soon as they are installed, we turn off this function.</para> +like <userinput>vim</userinput> and <userinput>less</userinput> 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 to use the LFS variable anymore, because everything you do will be restricted to the LFS file system -- since |