diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index 3b18d42da..4f277815b 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -157,17 +157,25 @@ EOF Several commercial distributions add a non-documented instantiation of /etc/bash.bashrc to the initialization of - bash. This file has the potential to modify the lfs + bash. 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 + packages. To make sure the lfs + user's envronment is clean, check for the presence of /etc/bash.bashrc and, if present, move it - out of the way. As the root user, run: + out of the way. As the root + user, run: - mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE + [ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE - After use of the lfs user is finished at the end of After use of the lfs user is finished at the beginning of , you can restore - /etc/bash.bashrc (if desired). + /etc/bash.bashrc (if desired). + + Note that the LFS Bash package we will build in + is not configured to load or execute + /etc/bash.bashrc, so this file is useless on a + completed LFS system. Finally, to have the environment fully prepared for building the