LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Anyone know what this is all about? (https://www.linuxquestions.org/questions/linux-from-scratch-13/anyone-know-what-this-is-all-about-4175684107/)

Captian Kangeroo 10-23-2020 09:20 AM

Anyone know what this is all about?
 
Hi,

ch.4.4
Important

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 user's environment in ways that can affect the building of critical LFS packages. To make sure the lfs user's environment is clean, check for the presence of /etc/bash.bashrc and, if present, move it out of the way. As the root user, run:

[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE

After use of the lfs user is finished at the beginning of Chapter 7, you can restore /etc/bash.bashrc (if desired).

Note that the LFS Bash package we will build in Section 8.34, “Bash-5.0” is not configured to load or execute /etc/bash.bashrc, so this file is useless on a completed LFS system.


Thank you

bryan_S 10-23-2020 04:07 PM

It was mentioned in the mailing list. As i recall, it will "pollute" the environment of the lfs user possibly causing hard to troubleshoot problems. I think the problem distros mentioned were Debian and openSuse? I see Arch linux has this file also. I would take this warning seriously.

Captian Kangeroo 10-23-2020 04:43 PM

Thanks. Wonder if 9.0 will work good?

bryan_S 10-24-2020 08:40 AM

LFS version is irrelevant - problem is distros using that undocumented, "evil" bash file. Another advantage of using LFS to build LFS.

Captian Kangeroo 10-24-2020 10:44 AM

Thanks Bryan,
Think I will use 9.0 and see how it goes


All times are GMT -5. The time now is 09:04 PM.