Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In 6.4, Entering the chroot environment, I try to be in chroot mode with the command
chroot "$LFS" /tools/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
but it doesn't work. And the prompt says :
bash: mesg: command not found
I went back I tried to find where I did something wrong but I haven't had any luck with it... Do any of you guys have any ideas regarding my problem ?
Yes, I've mounted lfs partition and echo $LFS shows me /mnt/lfs so it's okay too.
And yes, I did Chap. 6.2.2 and 6.2.3 as well. Actually, I went back and did it a second time to be sure.
There isn't any 'mesg' in /mnt/lfs/etc/profile and I don't have the .bash_profile file. But I have a .bashrc file and after checking it, there isn't a 'mess'.
That's what you were asking, right ? Because I didn't really understand what you are telling me to do, sorry.
I left you some screenshots of the files.
Actually, it's like I'm in chroot environment expect I don't have "I have no name!:/" at the start of the prompt but "root@debian:~" became "root@debian:/". So, does this mean everything is ok ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.