2.4. Setting The $LFS Variable http://www.linuxfromscratch.org/lfs/view/7.8-systemd/chapter02/aboutlfs .html
Hi, after many years of knowing about LFS I finally decided to give it a try!. As you can see I am only just begun :-) My host system is Ubuntu Gnome 15.10. I believe that Ubuntu uses dash as default shell, however based upon the recommendation in the book I installed bash. I then deleted the link /bin/sh to dash and recreated it to /bin/bash. Then as section 2.4 I created the files .bash_profile for my user and for root with the line: > export LFS=/mnt/lfs However, testing this with echo $LFS in all sorts of ways, including rebooting, sudo su - , sudo echo $LFS , etc. showed that the .bash_profile was not being respected. I searched the mailing list archives and found the following post: http://lists.linuxfromscratch.org/pipermail/blfs-support/2013-February/ 072064.html which gave me the answer to my problem. I would like to respectfully suggest that this information could be mentioned in Section 2.4 of the book. Thank you. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
