Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux Distribution => Distribution Specific => Topic started by: swap on July 14, 2011, 06:23:38 AM

Title: error while chrooting
Post by: swap on July 14, 2011, 06:23:38 AM
Hi, I have taken up LFS as my college project. I have completed the test system installation so far and now going to continue with actual system building (i.e. chapter 6)

The problem is that when I give the 'chroot' command i.e.

Quote
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

I get error as

Quote
:/tools/bin/env - no such file or folder found

But when I manually check the /tools/bin directory,I can find the required file 'env'. So what can be the error?
Title: Re: error while chrooting
Post by: gauravbajaj on December 21, 2011, 10:13:29 PM
Is "/tools/bin/env "  is in the chroot env also? i.e under $LFS ?