- Timestamp:
- Feb 21, 2006, 1:27:29 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 56a7e3f
- Parents:
- c21045e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/settingenviron.xml
rc21045e6 r2c6a9d5 11 11 <title>Setting Up the Environment</title> 12 12 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> 16 16 17 <screen os="b"><userinput>cat > ${LFS}/root/.bash_profile << "EOF"17 <screen><userinput>cat > ${LFS}/root/.bash_profile << "EOF" 18 18 <literal>PS1='\u:\w\$ ' 19 19 LC_ALL=POSIX … … 22 22 EOF</userinput></screen> 23 23 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> 27 33 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> 34 41 35 42 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.