Changeset 2c6a9d5 for BOOK/boot


Ignore:
Timestamp:
Feb 21, 2006, 1:27:29 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
56a7e3f
Parents:
c21045e6
Message:

r792@server (orig r790): darcym | 2005-12-01 14:55:03 -0800
Correct text around setting of PATH for final system build


File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/settingenviron.xml

    rc21045e6 r2c6a9d5  
    1111  <title>Setting Up the Environment</title>
    1212
    13     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    14     href="../../final-preps/settingenviron.xml"
    15     xpointer="xpointer(//*[@os='a'])"/>
     13  <para>The new instance of the shell is a <emphasis>non-login</emphasis>
     14  shell, will read <filename>.bash_profile</filename> file. Create the
     15  <filename>.bash_profile</filename> file now:</para>
    1616
    17 <screen os="b"><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
     17<screen><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
    1818<literal>PS1='\u:\w\$ '
    1919LC_ALL=POSIX
     
    2222EOF</userinput></screen>
    2323
    24     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    25     href="../../final-preps/settingenviron.xml"
    26     xpointer="xpointer(//*[@os='i'])"/>
     24  <para>The <envar>LC_ALL</envar> variable controls the localization of
     25  certain programs, making their messages follow the conventions of a
     26  specified country. If the host system uses a version of Glibc older
     27  than 2.2.4, having <envar>LC_ALL</envar> set to something other than
     28  <quote>POSIX</quote> or <quote>C</quote> (during this chapter) may cause
     29  issues if you exit the chroot environment and wish to return later.
     30  Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
     31  (the two are equivalent) ensures that everything will work as expected
     32  in the chroot environment.</para>
    2733
    28   <para os="j">By putting <filename class="directory">/tools/bin</filename> ahead
    29   of the standard <envar>PATH</envar>, all the programs installed in
    30   <xref linkend="chapter-temporary-tools"/> are picked up by the shell
    31   immediately after their installation. This, combined with turning off
    32   hashing, limits the risk that old programs from the host are being used
    33   when they should not be used any longer.</para>
     34  <para>By putting <filename class="directory">/tools/bin</filename> at
     35  the end of the standard <envar>PATH</envar>, all the programs installed in
     36  <xref linkend="chapter-temporary-tools"/> are only picked up by the shell
     37  if they have not yet been built on the target system. This configuration
     38  forces use of the final system binaries as they are built over the
     39  temporary-tools, minimising the chance final system programs being built
     40  against the temporary-tools.</para>
    3441
    3542</sect1>
Note: See TracChangeset for help on using the changeset viewer.