To whom it may concern!

There might be a lot of scripts if one have to leave the building 
process after he once came up as the chrooted root sucessfully.

So I have minimized the number of issues to necessarily have to be made
for an environment to go on building and compiling.

I would be glad if it could be tested by anyone other, thank you.

__________________________________________________
mkswap /dev/hda12
export LFS=/mnt/lfs
echo $LFS
mkdir -p $LFS
mount /dev/hda10 $LFS
ln -s $LFS/tools /
cd /$LFS/sources
ls -lisa
mount -t proc proc $LFS/proc
mount -t sysfs sysfs $LFS/sys
mount -f -t tmpfs tmpfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
mount
export LFS=/mnt/lfs
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
mount -n -t tmpfs none /dev
mknod -m 622 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
mknod -m 666 /dev/ptmx c 5 2
mknod -m 666 /dev/tty c 5 0
mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
chown root:tty /dev/{console,ptmx,tty}
ln -s /proc/self/fd /dev/fd
ln -s /proc/self/fd/0 /dev/stdin
ln -s /proc/self/fd/1 /dev/stdout
ln -s /proc/self/fd/2 /dev/stderr
ln -s /proc/kcore /dev/core
mkdir /dev/pts
mkdir /dev/shm
mount -t devpts -o gid=4,mode=620 none /dev/pts
mount -t tmpfs none /dev/shm
----------------------------------------------------------------------
I have another version with contolls of the new minimal filesystem
allready made before and after chrooting!
For entering as chroot just on a additional virtual console only 
line 15 to 19 should be necessary.

Not a problem, just a curiosity: Chapter 6.1: 
 The remainder of this book is to be performed while logged in as user 
root and no longer as user lfs. Also, double check that $LFS is set. 

And as I'm told, in $LFS/sources there only should be buinutils from 
before.

And in chapter 6.3 one should chroot. But im chapter 6.9 one needs
the headers 

cp -R include/asm-i386 /usr/include/asm

How? Which? From where? 
On the LiveCD there arn't any and which is unaccessible and to where?
Neither asm nor asm-i386 has been built before.

But much more funny

cp -R include/linux /usr/include
chown -R root:root /usr/include/{asm,linux}

Who should do it? The root of the LiveCD or the chrooted one?
Where to get the sources from?
So one should have ignored the hints and not deleted linux-libcheaders-
-2.6.11.2/ in $LFS/sources because there is the so called asm-i386
and inspite of cp -R include/linux /usr/include made linux inside.
then as changed root
cd /sources/linux-libc-headers-2.6.11.2 and copy. But not
cp -R include/asm-i386 /usr/include/asm!
Better 
cp -R include/asm-i386/* /usr/include/asm if it's the best choice and
cp -R include/linux/* /usr/include/linux

Sometimes the Book is perfectly clear, but not here. Who did write this 
chapter?

Kind regards
Clemens

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to