chroot,ch 6

Camilo Pérez Murillo seth at
Sat Nov 15 06:09:06 PST 2003

i forgot to tell you, to make shure this variable is define as root.... 
apparently you have it, but, when you change to su we don't know if its 

On Sat, 15 Nov 2003 08:03:13 -0600, Camilo Pérez Murillo <seth at> 

> make shure your variable $LFS is defined... check with "echo $LFS"
> On Sat, 15 Nov 2003 04:17:25 -0200, michael <michael8110 at> 
> wrote:
>> 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..


  Camilo Pérez Murillo
  cQ Gamers League . Costa Rica
  E-mail: camiloperez at
 Privileged, Confidential and (C)opyrighted Information is contained in 
this message.
If you are not the addressee(s) indicated in this message (or responsible 
for delivery of the message to such person), in such case, you may not copy 
or deliver this message to anyone, you should destroy this message and 
notify CQGL immediately.
If you or your employer does not consent to Internet e-mail messages of 
this kind, please advise the sender immediately.
Please note that CQGL is not responsible for any kind of damages caused by 
any viruses that may be transmitted by this email. It is the recipient 
responsibility to scan the attachments, (if any).

More information about the lfs-support mailing list