November 21, 2024, 06:12:22 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: error while chrooting  (Read 12045 times)

Offline swap

  • New Member
  • Posts: 1
error while chrooting
« 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?

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: error while chrooting
« Reply #1 on: December 21, 2011, 10:13:29 PM »
Is "/tools/bin/env "  is in the chroot env also? i.e under $LFS ?