Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/settingenviron.xml

    r4e26453 raa9ade1  
    2020EOF</userinput></screen>
    2121
    22   <para>When logged on as user <systemitem class="username">lfs</systemitem>,
    23   or when switched to the &lfs-user; user using an <command>su</command> command
    24   with the <quote><parameter>-</parameter></quote> option,
     22  <para>When logged on as user <systemitem class="username">lfs</systemitem>
     23  or switched to the &lfs-user; user using a <command>su</command> command
     24  with <quote><parameter>-</parameter></quote> option,
    2525  the initial shell is a <emphasis>login</emphasis> shell which reads
    2626  the <filename>/etc/profile</filename> of the host (probably containing some
     
    3131  <envar>TERM</envar>, and <envar>PS1</envar> variables. This ensures that no
    3232  unwanted and potentially hazardous environment variables from the host system
    33   leak into the build environment.</para>
     33  leak into the build environment. The technique used here achieves the goal of
     34  ensuring a clean environment.</para>
    3435
    3536  <para>The new instance of the shell is a <emphasis>non-login</emphasis>
     
    100101  Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
    101102  (the two are equivalent) ensures that everything will work as expected in
    102   the cross-compilation environment.</para>
     103  the chroot environment.</para>
    103104      </listitem>
    104105    </varlistentry>
     
    108109      <listitem>
    109110  <para>The <envar>LFS_TGT</envar> variable sets a non-default, but compatible machine
    110   description for use when building our cross-compiler and linker and when
    111   cross-compiling our temporary toolchain. More information is provided by
     111  description for use when building our cross compiler and linker and when cross
     112  compiling our temporary toolchain. More information is contained in
    112113  <xref linkend="ch-tools-toolchaintechnotes" role=""/>.</para>
    113114      </listitem>
     
    132133      <listitem>
    133134  <para>If <filename class="directory">/bin</filename> is not a symbolic
    134   link, it must be added to the <envar>PATH</envar> variable.</para>
     135  link, then it has to be added to the <envar>PATH</envar> variable.</para>
    135136      </listitem>
    136137    </varlistentry>
     
    163164      <term><parameter>export ...</parameter></term>
    164165      <listitem>
    165         <para>While the preceding commands have set some variables, in order
     166        <para>While the above commands have set some variables, in order
    166167        to make them visible within any sub-shells, we export them.</para>
    167168      </listitem>
     
    172173  <important>
    173174
    174      <para>Several commercial distributions add an undocumented instantiation
     175     <para>Several commercial distributions add a non-documented instantiation
    175176     of <filename>/etc/bash.bashrc</filename> to the initialization of
    176177     <command>bash</command>. This file has the potential to modify the
     
    185186     <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
    186187
    187      <para>When the <systemitem class="username">lfs</systemitem>
    188      user is no longer needed (at the beginning of <xref
    189      linkend="chapter-chroot-temporary-tools"/>), you may safely restore
     188     <para>After use of the <systemitem class="username">lfs</systemitem>
     189     user is finished at the beginning of <xref
     190     linkend="chapter-chroot-temporary-tools"/>, you can restore
    190191     <filename>/etc/bash.bashrc</filename> (if desired).</para>
    191192
     
    196197  </important>
    197198
    198   <para>Finally, to ensure the environment is fully prepared for building the
     199  <para>Finally, to have the environment fully prepared for building the
    199200  temporary tools, force the <command>bash</command> shell to read
    200201  the new user profile:</para>
Note: See TracChangeset for help on using the changeset viewer.