aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-22 01:21:48 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-06-22 01:21:48 +0000
commit686c88ba6bf04a48da4203743259ea4a5f1bff26 (patch)
treeee94d31046b55c2fc95a3be7ffcd27eb41b00fd2 /chapter04
parent3022304849cf749b3a97e48e0683ae9eb3a76e40 (diff)
Add a note about /etc/bash.bashrc used in some distros.
Tweak css for appendix/dependencies. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11972 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter04')
-rw-r--r--chapter04/settingenviron.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml
index 747b90b80..3b18d42da 100644
--- a/chapter04/settingenviron.xml
+++ b/chapter04/settingenviron.xml
@@ -153,6 +153,23 @@ EOF</userinput></screen>
</variablelist>
+ <important>
+
+ <para>Several commercial distributions add a non-documented instantiation
+ of <filename>/etc/bash.bashrc</filename> to the initialization of
+ <command>bash</command>. This file has the potential to modify the lfs
+ user's envirnment in ways that can affect the building of critical LFS
+ packages. To make sure the lfs user's envronment is clean, check for the
+ presence of <filename>/etc/bash.bashrc</filename> and, if present, move it
+ out of the way. As the root user, run:</para>
+
+ <screen role="nodump"><userinput>mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
+
+ <para>After use of the lfs user is finished at the end of <xref
+ linkend="chapter-chroot-temporary-tools"/>, you can restore
+ <filename>/etc/bash.bashrc</filename> (if desired).</para>
+ </important>
+
<para>Finally, to have the environment fully prepared for building the
temporary tools, source the just-created user profile:</para>