chroot,ch 6

michael michael8110 at terra.com.br
Fri Nov 14 22:17:25 PST 2003


bash-2.05b$ LFS=$LFS/mnt/lfs
bash-2.05b$ echo $LFS
/mnt/lfs
bash-2.05b$ su
Password:
bash-2.05b# 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
chroot: cannot change root directory to /tools/bin/env: Not a directory

only if i do this as user lfs will chroot see $LFS,but only to inform it 
regrettably cannot do anything about it,and as root ,as you can see,chroot 
goes straight past $LFS and attempts to chroot into binary env..



More information about the lfs-support mailing list