Mise en place des packages -------------------------- Necessite unionfs 1.1.3 ou + sur la machine hote * filesystems : /mnt/pkg /mnt/lfs /mnt/union : dirs=/mnt/pkg:/mnt/lfs=ro export LFS=/mnt/lfs * as lfs user, install mktemp-1.5 in /tools ./configure --prefix=/tools --with-libc make make install * unionfs preparation mkdir -p $LFS/{dev,proc,sys,bin,tmp} mknod -m 600 $LFS/dev/console c 5 1 mknod -m 666 $LFS/dev/null c 1 3 ln -s /tools/bin/bash $LFS/bin/bash ln -s bash $LFS/bin/sh * install trip in $LFS and link it in / cd $LFS && tar xf trip.tar ln -s $LFS/trip/trip/trunk/trip /usr/sbin/trip ln -s $LFS/trip/trip/trunk/trip/etc/trip /etc ln -s $LFS/trip/lfs-20060416/pkg /usr/src/trip ln -s /trip/lfs-20060416/pkg $LFS/usr/src/trip ln -s $LFS/trip/ /trip configuration $LFS/etc/trip/conf D'une maniere generale : - pas d'identification tres poussee - pas de make check - not packaged : /dev (already exists) /dev/null (already exists) /dev/console (already exists) /proc (mount point) /sys (mount point) /mnt (already exists) - lfs-base - linux-libc-headers - man-pages : conflict with later packages, so not installed - create some essential symlinks ln -s /tools/bin/{cat,grep,pwd,stty} $LFS/bin ln -s /tools/bin/perl $LFS/usr/bin ln -s /tools/lib/libgcc_s.so{,.1} $LFS/lib - glibc - re-adjusting the toolchain 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 mv /tools/bin/{ld,ld-old} mv /tools/$(gcc -dumpmachine)/bin/{ld,ld-old} mv /tools/bin/{ld-new,ld} ln -s /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld gcc -dumpspecs | \ perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \ -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \ `dirname $(gcc --print-libgcc-file-name)`/specs - binutils - gcc before install : rm $LFS/usr/lib/libgcc_s.so{,.1} - db - coreutils before install : rm $LFS/bin/{cat,pwd,stty} - iana-etc - m4 - bison - ncurses - procps - sed - libtool - perl before build : rm $LFS/usr/bin/perl - readline - zlib-shared - zlib-static - autoconf - automake - bash trip --no-conflicts --install - bzip2 - diffutils - e2fsprogs - file - findutils - flex - grub - gawk - gettext - grep before install : rm $LFS/bin/grep - groff - gzip - inetutils-1.4.2 - iproute2- - kbd-1.12 - less-394 - make - Man-DB-2.4.3 - Mktemp-1.5 - Module-Init-Tools-3.2.2 - Patch-2.5.4 - Psmisc-22.2 - Shadow-4.0.15 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 pwconv grpconv rm /etc/{passwd-,group-,shadow-,gshadow-} passwd root - Sysklogd-1.4.1 - Sysvinit - Tar-1.15.1 - Texinfo-4.8 - Udev-088 - Util-linux-2.12r - Vim-6.4 - lfs-bootscripts-20060415 - lfs-configuration-20060416 specifique lfs-configuration mettre a jour version dans install.sh : - /etc/sysconfig/network - /etc/hosts - /etc/lfs-release Configuration finale : - /etc/fstab - /boot/grub/menu.lst (eventuellement) - /etc/resolv.conf - /etc/hosts - /etc/sysconfig/network - /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 - /etc/sysconfig/console ensuite suivre liste "order"