Linux From Scratch
Version 6.4
Gerard
Beekmans
Copyright
� 1999-2008 Gerard Beekmans
Table of Contents
Preface
Foreword
Audience
Prerequisites
Host System Requirements
Typography
Structure
Errata
I. Introduction
1. Introduction
How to Build an LFS System
What's new since the last release
Changelog
Resources
Help
II. Preparing for the Build
2. Preparing a New Partition
Introduction
Creating a New Partition
Creating a File System on the Partition
Mounting the New Partition
3. Packages and Patches
Introduction
All Packages
Needed Patches
4. Final Preparations
About $LFS
Creating the $LFS/tools Directory
Adding the LFS User
Setting Up the Environment
About SBUs
About the Test Suites
5. Constructing a Temporary System
Introduction
Toolchain Technical Notes
General Compilation Instructions
Binutils-2.18 - Pass 1
GCC-4.3.2 - Pass 1
Linux-2.6.27.4 API Headers
Glibc-2.8-20080929
Adjusting the Toolchain
Tcl-8.5.5
Expect-5.43.0
DejaGNU-1.4.4
GCC-4.3.2 - Pass 2
Binutils-2.18 - Pass 2
Ncurses-5.6
Bash-3.2
Bzip2-1.0.5
Coreutils-6.12
Diffutils-2.8.1
E2fsprogs-1.41.3
Findutils-4.4.0
Gawk-3.1.6
Gettext-0.17
Grep-2.5.3
Gzip-1.3.12
M4-1.4.12
Make-3.81
Patch-2.5.4
Perl-5.10.0
Sed-4.1.5
Tar-1.20
Texinfo-4.13a
Util-linux-ng-2.14.1
Stripping
Changing Ownership
III. Building the LFS System
6. Installing Basic System Software
Introduction
Preparing Virtual Kernel File Systems
Package Management
Entering the Chroot Environment
Creating Directories
Creating Essential Files and Symlinks
Linux-2.6.27.4 API Headers
Man-pages-3.11
Glibc-2.8-20080929
Re-adjusting the Toolchain
Binutils-2.18
GMP-4.2.4
MPFR-2.3.2
GCC-4.3.2
Berkeley DB-4.7.25
Sed-4.1.5
E2fsprogs-1.41.3
Coreutils-6.12
Iana-Etc-2.30
M4-1.4.12
Bison-2.3
Ncurses-5.6
Procps-3.2.7
Libtool-2.2.6a
Zlib-1.2.3
Perl-5.10.0
Readline-5.2
Autoconf-2.63
Automake-1.10.1
Bash-3.2
Bzip2-1.0.5
Diffutils-2.8.1
File-4.26
Gawk-3.1.6
Findutils-4.4.0
Flex-2.5.35
GRUB-0.97
Gettext-0.17
Grep-2.5.3
Groff-1.18.1.4
Gzip-1.3.12
Inetutils-1.5
IPRoute2-2.6.26
Kbd-1.14.1
Less-418
Make-3.81
Man-DB-2.5.2
Module-Init-Tools-3.4.1
Patch-2.5.4
Psmisc-22.6
Shadow-4.1.2.1
Sysklogd-1.5
Sysvinit-2.86
Tar-1.20
Texinfo-4.13a
Udev-130
Util-linux-ng-2.14.1
Vim-7.2
About Debugging Symbols
Stripping Again
Cleaning Up
7. Setting Up System Bootscripts
Introduction
LFS-Bootscripts-20081031
How Do These Bootscripts Work?
Device and Module Handling on an LFS System
Configuring the setclock Script
Configuring the Linux Console
Configuring the sysklogd Script
Creating the /etc/inputrc File
The Bash Shell Startup Files
Configuring the localnet Script
Customizing the /etc/hosts File
Creating Custom Symlinks to Devices
Configuring the network Script
8. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-2.6.27.4
Making the LFS System Bootable
9. The End
The End
Get Counted
Rebooting the System
What Now?
IV. Appendices
A. Acronyms and Terms
B. Acknowledgments
C. Dependencies
D. Boot and sysconfig scripts version-20081031
/etc/rc.d/init.d/rc
/etc/rc.d/init.d/functions
/etc/rc.d/init.d/mountkernfs
/etc/rc.d/init.d/consolelog
/etc/rc.d/init.d/modules
/etc/rc.d/init.d/udev
/etc/rc.d/init.d/swap
/etc/rc.d/init.d/setclock
/etc/rc.d/init.d/checkfs
/etc/rc.d/init.d/mountfs
/etc/rc.d/init.d/udev_retry
/etc/rc.d/init.d/cleanfs
/etc/rc.d/init.d/console
/etc/rc.d/init.d/localnet
/etc/rc.d/init.d/sysctl
/etc/rc.d/init.d/sysklogd
/etc/rc.d/init.d/network
/etc/rc.d/init.d/sendsignals
/etc/rc.d/init.d/reboot
/etc/rc.d/init.d/halt
/etc/rc.d/init.d/template
/etc/sysconfig/rc
/etc/sysconfig/modules
/etc/sysconfig/createfiles
/etc/sysconfig/network-devices/ifup
/etc/sysconfig/network-devices/ifdown
/etc/sysconfig/network-devices/services/ipv4-static
/etc/sysconfig/network-devices/services/ipv4-static-route
E. Udev configuration rules
55-lfs.rules
61-cdrom.rules
F. LFS Licenses
Creative Commons License
The MIT License
Index