chroot

Ronald Hummelink ronald at hummelink.xs4all.nl
Fri May 17 09:45:51 PDT 2002


On Fri, 2002-05-17 at 17:47, Bruce Dubbs wrote:
> I was just reviewing Chapter 6 and in the chroot section we have:
> 
> cd $LFS &&
> chroot $LFS /usr/bin/env -i HOME=/root \
>     TERM=$TERM /bin/bash --login
> 
> It may have been discussed before, but why do we need the cd $LFS 
> instruction?

Old versions of sh-utils include a version of chroot that did not change
directory themselfes, resulting in still being in a directory outside
the chroot jail once entered.

> 
>    -- Bruce
> 
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-dev' in the subject header of the message


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list