Changeset 3a38c46


Ignore:
Timestamp:
06/22/2020 07:47:08 AM (16 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
ee0638f
Parents:
686c88b
Message:

environment: make bash.bashrc note more clear

Decorate usernames with XML labels.
Modify the command so it only applies to systems with bash.bashrc.
Correct the time point which we stop to use lfs user.
Tell the audience that bash.bashrc is useless on LFS.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11973 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/settingenviron.xml

    r686c88b r3a38c46  
    158158     <para>Several commercial distributions add a non-documented instantiation
    159159     of <filename>/etc/bash.bashrc</filename> to the initialization of
    160      <command>bash</command>. This file has the potential to modify the lfs
     160     <command>bash</command>. This file has the potential to modify the
     161     <systemitem class="username">lfs</systemitem>
    161162     user's envirnment in ways that can affect the building of critical LFS
    162      packages. To make sure the lfs user's envronment is clean, check for the
     163     packages. To make sure the <systemitem class="username">lfs</systemitem>
     164     user's envronment is clean, check for the
    163165     presence of <filename>/etc/bash.bashrc</filename> and, if present, move it
    164      out of the way.  As the root user, run:</para>
     166     out of the way.  As the <systemitem class="username">root</systemitem>
     167     user, run:</para>
    165168
    166      <screen role="nodump"><userinput>mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
     169     <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
    167170
    168      <para>After use of the lfs user is finished at the end of <xref
     171     <para>After use of the lfs user is finished at the beginning of <xref
    169172     linkend="chapter-chroot-temporary-tools"/>, you can restore
    170      <filename>/etc/bash.bashrc</filename> (if desired).</para>
     173         <filename>/etc/bash.bashrc</filename> (if desired).</para>
     174
     175     <para>Note that the LFS Bash package we will build in
     176     <xref linkend="ch-system-bash"/> is not configured to load or execute
     177     <filename>/etc/bash.bashrc</filename>, so this file is useless on a
     178     completed LFS system.</para>
    171179  </important>
    172180
Note: See TracChangeset for help on using the changeset viewer.