LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   6.4. Entering the Chroot Environment: /tools/bin/env: no such file (https://www.linuxquestions.org/questions/linux-from-scratch-13/6-4-entering-the-chroot-environment-tools-bin-env-no-such-file-715321/)

jpeters 03-29-2009 02:41 PM

6.4. Entering the Chroot Environment: /tools/bin/env: no such file
 
Code:

# 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
chroot: cannot execute /tools/bin/env: No such file or directory

Code:

# ls -l /tools/bin/env
-rwxr-xr-x 1 root root 27700 2009-03-28 17:54 /tools/bin/env

Code:

# find $LFS/tools/bin/env
/mnt/hda4/lfs/tools/bin/env


jpeters 03-29-2009 09:58 PM

With some research, I found the problem. For the command to work, it needed bash and its dependencies copied into in the new root directory from the host system. I never used chroot before, so this is all new.


All times are GMT -5. The time now is 05:06 AM.