env problem

marty marty at goodoldmarty.com
Mon Jun 2 21:46:48 PDT 2008


why did this screw this up after multiple tries?

[root at localhost hlfs]# # Preparing Virtual Kernel File Systems
[root at localhost hlfs]# install -vd $HLFS/{dev,proc,sys}
install: creating directory `/mnt/hlfs/dev'
install: creating directory `/mnt/hlfs/proc'
install: creating directory `/mnt/hlfs/sys'
[root at localhost hlfs]# mknod -m 600 $HLFS/dev/console c 5 1
[root at localhost hlfs]# mknod -m 666 $HLFS/dev/null c 1 3
[root at localhost hlfs]# mount -v --bind /dev $HLFS/dev
/dev on /mnt/hlfs/dev type none (rw,bind)
[root at localhost hlfs]# mount -vt devpts -o mode=620 devpts $HLFS/dev/pts
devpts on /mnt/hlfs/dev/pts type devpts (rw,mode=620)
[root at localhost hlfs]# mount -vt tmpfs shm $HLFS/dev/shm
shm on /mnt/hlfs/dev/shm type tmpfs (rw)
[root at localhost hlfs]# mount -vt proc proc $HLFS/proc
proc on /mnt/hlfs/proc type proc (rw)
[root at localhost hlfs]# mount -vt sysfs sysfs $HLFS/sys
sysfs on /mnt/hlfs/sys type sysfs (rw)
[root at localhost hlfs]# # Entering the Chroot Environment
[root at localhost hlfs]# chroot "$HLFS" /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 run command `/tools/bin/env': No such file or directory
----------- BARFED OUT HERE --------------------
[root at localhost hlfs]# ls -l /tools/bin/env
-rwxr-xr-x 1 root root 96752 Jun  1 15:41 /tools/bin/env
The file is obviously there but as root I can't access or execute it?
Why not? Coreutils broken maybe?

Marty B.

-- 
Building a better mousetrap only results in better mice. C. Darwin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20080603/a6e17207/attachment.sig>


More information about the hlfs-dev mailing list