Subsections
- Vanilla kernel 2.6.17.8 with applied lfs-patch as described in next
section.
- Large block devices (LBD) are supported
- Large files are supported
- Recent version of glibc library is required (e.g., 2.3.6 from Debian
Sarge or current 2.4). This is not
important for compiling file-system but for using it. Some older libraries
(e.g., 2.0.6 from 1997)
contained implementation of readdir() that can return
some directory entries multiple times in case of large directories. This
behavior was also observed using ext3 file-system with indexed
directories.
LFS has been developed and tested with vanilla kernel 2.6.17.
- Apply path to configured kernel
$ cd /usr/src/linux-2.6.17.8/
$ patch -p1 <<path_to_lfs_instaltion/patches/lfs-2.6.17.8-1.patch
For your connvenience, a patched kernel is also included on the CD.
Compile your kernel as usually.
- Change to the root directory of LFS distribution. Type:
$ make
- Install LFS by typing
$ make install
This will copy the garbage collector to /sbin/lfs-gc,
mkfs.lfs to /sbin/mkfs.lfs,
fsck.lfs to /sbin/fsck.lfs,
dump.lfs to /sbin/dump.lfs and
liblfs.so to /lib/liblfs.so.
It will also install the kernel module to the appropriate directory.
- Optionally, copy man-pages from doc/man to your distribution's
man path2.1.
- Load LFS module by:
$ modprobe lfs
LFS is now installed and ready for use. You can proceed to Quick Start
in next chapter
Viliam Holub
2006-12-04