Changeset 981e0c4 for chapter04


Ignore:
Timestamp:
10/28/2022 10:30:10 PM (18 months ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
multilib
Children:
07fd8bf8
Parents:
f9e8271 (diff), c389124 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

Location:
chapter04
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter04/addinguser.xml

    rf9e8271 r981e0c4  
    6363      <term><parameter>lfs</parameter></term>
    6464      <listitem>
    65         <para>This is the actual name for the created user.</para>
     65        <para>This is the name of the new user.</para>
    6666      </listitem>
    6767    </varlistentry>
     
    7272  non-&root; user (as opposed to switching to user &lfs-user;
    7373  when logged in as &root;, which does not require the &lfs-user; user to
    74   have a password), you need to set a password of &lfs-user;.  Issue the
     74  have a password), you need to set a password for &lfs-user;.  Issue the
    7575  following command as the &root; user to set the password:</para>
    7676
  • chapter04/settingenviron.xml

    rf9e8271 r981e0c4  
    2020EOF</userinput></screen>
    2121
    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,
     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,
    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. The technique used here achieves the goal of
    34   ensuring a clean environment.</para>
     33  leak into the build environment.</para>
    3534
    3635  <para>The new instance of the shell is a <emphasis>non-login</emphasis>
     
    115114  Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
    116115  (the two are equivalent) ensures that everything will work as expected in
    117   the chroot environment.</para>
     116  the cross-compilation environment.</para>
    118117      </listitem>
    119118    </varlistentry>
     
    123122      <listitem>
    124123  <para>The <envar>LFS_TGT</envar> variable sets a non-default, but compatible machine
    125   description for use when building our cross compiler and linker and when cross
    126   compiling our temporary toolchain. More information is contained in
     124  description for use when building our cross-compiler and linker and when
     125  cross-compiling our temporary toolchain. More information is provided by
    127126  <xref linkend="ch-tools-toolchaintechnotes" role=""/>.</para>
    128127      </listitem>
     
    147146      <listitem>
    148147  <para>If <filename class="directory">/bin</filename> is not a symbolic
    149   link, then it has to be added to the <envar>PATH</envar> variable.</para>
     148  link, it must be added to the <envar>PATH</envar> variable.</para>
    150149      </listitem>
    151150    </varlistentry>
     
    178177      <term><parameter>export ...</parameter></term>
    179178      <listitem>
    180         <para>While the above commands have set some variables, in order
     179        <para>While the preceding commands have set some variables, in order
    181180        to make them visible within any sub-shells, we export them.</para>
    182181      </listitem>
     
    187186  <important>
    188187
    189      <para>Several commercial distributions add a non-documented instantiation
     188     <para>Several commercial distributions add an undocumented instantiation
    190189     of <filename>/etc/bash.bashrc</filename> to the initialization of
    191190     <command>bash</command>. This file has the potential to modify the
     
    200199     <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
    201200
    202      <para>After use of the <systemitem class="username">lfs</systemitem>
    203      user is finished at the beginning of <xref
    204      linkend="chapter-chroot-temporary-tools"/>, you can restore
     201     <para>When the <systemitem class="username">lfs</systemitem>
     202     user is no longer needed (at the beginning of <xref
     203     linkend="chapter-chroot-temporary-tools"/>), you may safely restore
    205204     <filename>/etc/bash.bashrc</filename> (if desired).</para>
    206205
     
    211210  </important>
    212211
    213   <para>Finally, to have the environment fully prepared for building the
     212  <para>Finally, to ensure the environment is fully prepared for building the
    214213  temporary tools, force the <command>bash</command> shell to read
    215214  the new user profile:</para>
Note: See TracChangeset for help on using the changeset viewer.