Linux From Scratch
Version 6.3
Gerard
Beekmans
Copyright
� 1999–2007 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
Binutils-2.17 - Pass 1
GCC-4.1.2 - Pass 1
Linux-2.6.22.5 API Headers
Glibc-2.5.1
Adjusting the Toolchain
Tcl-8.4.15
Expect-5.43.0
DejaGNU-1.4.4
GCC-4.1.2 - Pass 2
Binutils-2.17 - Pass 2
Ncurses-5.6
Bash-3.2
Bzip2-1.0.4
Coreutils-6.9
Diffutils-2.8.1
Findutils-4.2.31
Gawk-3.1.5
Gettext-0.16.1
Grep-2.5.1a
Gzip-1.3.12
Make-3.81
Patch-2.5.4
Perl-5.8.8
Sed-4.1.5
Tar-1.18
Texinfo-4.9
Util-linux-2.12r
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.22.5 API Headers
Man-pages-2.63
Glibc-2.5.1
Re-adjusting the Toolchain
Binutils-2.17
GCC-4.1.2
Berkeley DB-4.5.20
Sed-4.1.5
E2fsprogs-1.40.2
Coreutils-6.9
Iana-Etc-2.20
M4-1.4.10
Bison-2.3
Ncurses-5.6
Procps-3.2.7
Libtool-1.5.24
Perl-5.8.8
Readline-5.2
Zlib-1.2.3
Autoconf-2.61
Automake-1.10
Bash-3.2
Bzip2-1.0.4
Diffutils-2.8.1
File-4.21
Findutils-4.2.31
Flex-2.5.33
GRUB-0.97
Gawk-3.1.5
Gettext-0.16.1
Grep-2.5.1a
Groff-1.18.1.4
Gzip-1.3.12
Inetutils-1.5
IPRoute2-2.6.20-070313
Kbd-1.12
Less-406
Make-3.81
Man-DB-2.4.4
Mktemp-1.5
Module-Init-Tools-3.2.2
Patch-2.5.4
Psmisc-22.5
Shadow-4.0.18.1
Sysklogd-1.4.1
Sysvinit-2.86
Tar-1.18
Texinfo-4.9
Udev-113
Util-linux-2.12r
Vim-7.1
About Debugging Symbols
Stripping Again
Cleaning Up
7. Setting Up System Bootscripts
Introduction
LFS-Bootscripts-6.3
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.22.5
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
Index