Changeset 752f4e5 for chapter06/chroot.xml
- Timestamp:
- 09/05/2004 01:22:23 PM (20 years ago)
- Branches:
- 6.0
- Children:
- 9876d9e
- Parents:
- e097438
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chroot.xml
re097438 r752f4e5 21 21 <para>The <parameter>-i</parameter> option given to the 22 22 <command>env</command> command will clear all variables of the chroot 23 environment. After that, only the <e mphasis>HOME</emphasis>,24 <e mphasis>TERM</emphasis>, <emphasis>PS1</emphasis>, and25 <e mphasis>PATH</emphasis> variables are set again. The23 environment. After that, only the <envar>HOME</envar>, 24 <envar>TERM</envar>, <envar>PS1</envar>, and 25 <envar>PATH</envar> variables are set again. The 26 26 <parameter>TERM=$TERM</parameter> construct will set the 27 <e mphasis>TERM</emphasis> variable inside chroot to the same value as27 <envar>TERM</envar> variable inside chroot to the same value as 28 28 outside chroot. This variable is needed for programs like 29 29 <command>vim</command> and <command>less</command> to operate 30 30 properly. If other variables are needed, such as 31 <e mphasis>CFLAGS</emphasis> or <emphasis>CXXFLAGS</emphasis>, this is31 <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is 32 32 a good place to set them again.</para> 33 33 34 34 <para>From this point on, there is no need to use the 35 <e mphasis>LFS</emphasis> variable anymore, because all work will be35 <envar>LFS</envar> variable anymore, because all work will be 36 36 restricted to the LFS file system. This is because the Bash shell is 37 37 told that <filename class="directory">$LFS</filename> is now the root 38 38 (<filename class="directory">/</filename>) directory.</para> 39 39 40 <para>Notice that <filename class="directory">/tools/bin</filename> comes last in the PATH. This means that a 40 <para>Notice that <filename class="directory">/tools/bin</filename> 41 comes last in the <envar>PATH</envar>. This means that a 41 42 temporary tool will not be used anymore as soon as its final version 42 43 is installed. This occurs when the shell does not <quote>remember</quote> the 43 44 locations of executed binaries—for this reason, hashing is switched 44 off by passing the +hoption to bash.</para>45 off by passing the <parameter>+h</parameter> option to bash.</para> 45 46 46 47 <para>It is important that all the commands throughout the remainder
Note:
See TracChangeset
for help on using the changeset viewer.