LFS 6.2: made mistake when going from lfs to root setup

Ron Greene rgtech1 at adelphia.net
Sun Nov 12 13:59:48 PST 2006


At the end of Book 5.32 Changing Ownership I was warned to 'check that
$LFS is set in root's environment'. I did NOT check and only realized it
AFTER starting the chroot building. I.E. I did all of 6.2 instrucions
and then when I got to 6.4 and ran:
Quote:
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

i got error "chroot: cannot change root directory to: No such file...

I then checked enviornment: echo $LFS and got nothing.

So I did the export LFS=/mnt/lfs. Echo returns /mnt/lfs.

So then I repeated the commands in 6.2:
mkdir -pv $LFS/{dev,proc,sys}
mknod <rest of command>
mknod <rest of command>
BUT NOW the problem
mount --bind /dev $LFS/dev
gives error: can't create lock file /etc/mtab-23612: No such file or
directory....etc.

I assume that my prolems are the result of entering the above BEFORE
setting the $LFS enviornment FROM ROOT.

Does anyone know if I can fix this problem without having to start from
"scratch"?



More information about the lfs-support mailing list