Overwrote ~/.bashrc!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LFScript |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ran `./lfscript -B` as root on a Debian Jessie system, got the following error:
```
[17-11-19/15:52 UTC] Changing privileges (su): Now running as user 'lfs'
-su: /sources/
[17-11-19/15:52 UTC] UNEXPECTED PERMISSION ERROR
[17-11-19/15:52 UTC] A command could not be executed. Most likely you are
[17-11-19/15:52 UTC] running this program from within a directory which is not
[17-11-19/15:52 UTC] publicly available.
```
Aborted the build and removed LFScript it since it became clear to me that this script was not what I expected from a build system. I don't think a build script should require alternate users and other strange setup and constantly require looking at the wiki rather than giving helpful error messages and options in the utility itself.
Then I discovered launching terminals on my system no longer worked. At first I thought it was the symlink I had to create `ln -svf bash /bin/sh`, but no, I found this in my .bashrc:
```
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/
export LFS LC_ALL LFS_TGT PATH
/sources/
exit
```
No no no. No. No no. Why in the hells no. Jesus christ no. No. Why would? No, you know what? No good reason for this. No.
You do not seem to understand the goal of this project; Nor have you read the documentation:
"--- Before you start ---
It is recommended that you use LFScript on a virtual machine like VirtualBox. This allows you to experiment freely without any risk that you destroy your host system."
(quote from https:/ /www.lfscript. org/wiki/ index.php/ Quick_Start)