Re: Problem in entering chroot: /bin/bash not found
"Bhaumik Tripathi" ([email protected] via lfs-support Mailing List) <[email protected]> Sun, 15 Jun 2025 16:00:28 +0530
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
On 15/06/25 13:33, tjoen ([email protected] via lfs-support Mailing List) wrote: > On 6/15/25 8:14 AM, Bhaumik Tripathi ([email protected] via lfs- > support Mailing List) wrote: >> On 14/06/25 22:08, tjoen ([email protected] via lfs-support Mailing List) >> wrote: >>> On 6/14/25 6:56 AM, Bhaumik Tripathi ([email protected] via lfs- >>> support Mailing List) wrote: >>> >>> Missing the essential answer: >>> $ ls /mnt/lfs/bin/bash >> >> what do you mean? I mentioned that `/mnt/lfs/bin/` doesn't contain `bash` >> file or directory.Are you asking for the contents of `/mnt/lfs/bin/`? > > You wrote >> sh -> bash`. So, bash is not present in bin/bash > > So I wanted it more clear > I have no sh -> bash, only bash -> sh Oh! right this symlink which I mentioned was created as the last command of section 6.4 in the given book version (i.e. 12.3). The command was: `ln -sv bash $LFS/bin/sh` > Also more certainty about "bin/bash", > Is that the same as /mnt/lfs/bin/bash ? Yeah, I am sure of it because as the chroot commands starts it sets the root to $LFS. Leading to `/bin/bash` becomming `/mnt/lfs/bin/bash`. Also, as an experiment I ran the command `which bash` which says `/usr/bin/bash`. Then I ran the chroot command with this path to check if it takes the bash from root, which it didn't. It again gave the same error because there is no bash in `/mnt/lfs/usr/bin/bash` either. > My guess you made a mistake either in --prefix or in > $ make install without DESTDIR > I think your /bin/bash has a new date now I surely did add DESTDIR because otherwise the make install command would have given error since it required root while I am lfs user to run. --prefix was hard to forget as I copy pasted the command basically but still there is a high possibility. But since chown has changed the owner of all directories to root in chapter 7's starting. Should I try rebuilding bash as root from its tarball and see if it works? or change the ownership back to lfs and then rebuild bash? In that case would I need to rebuild binutils, gcc and packages that I built after it again? -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page