/tools/bin/bash

Christopher Bergeron christopher at bergeron.com
Thu Aug 12 17:22:18 PDT 2004


Can anyone [help me] figure out why I can't chroot into my development 
environment (chapter 6 of  5.1.1)?  When I try to execute the chroot 
command, i get an error about "env".  'env' does exist in /bin/ and I 
can execute it manually, however, I can't chroot with it. 

Does anyone have any ideas?

Much thanks in advance!
-Chris B


Here's some detail:

[root at fileserver ~]$ 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

[root at fileserver ~]$ ls /tools/bin/env
-rwxr-xr-x    1 lfs      users         12k Aug 12 15:11 /tools/bin/env

[root at fileserver ~]$ echo $LFS
/mnt/lfs

[root at fileserver ~]$ ls /tools
lrwxr-xr-x    1 root     root           14 May 31 00:50 /tools -> 
/mnt/lfs/tools

[root at fileserver ~]$ ls /mnt/lfs/proc
total 312M
dr-xr-xr-x    6 root     root            0 Aug  8 09:52 bus
-r--------    1 root     root            0 Aug  8 13:52 kmsg
                    ...... truncated for brevity ......
dr-xr-xr-x    5 root     root            0 Aug  8 13:52 acpi
[root at fileserver ~]$ ls $LFS/dev
total 0
drwxr-xr-x    2 root     root            0 Aug  8 09:52 pts

[root at fileserver ~]$ /tools/bin/env
MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/share/texmf/man
... etc ...
_=/tools/bin/env

[root at fileserver ~]$ ldd /tools/bin/env
        libc.so.6 => /lib/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)





More information about the lfs-support mailing list