From 3a38c46bd2aec88b5c0bf9400f2aee6e4b869cd2 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 22 Jun 2020 07:47:08 +0000 Subject: [PATCH] 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 --- chapter04/settingenviron.xml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) 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