Linux From Scratch
Version 6.1.1
Gerard
Beekmans
Copyright
� 1999–2005 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
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.15.94.0.2.2 - Pass 1
GCC-3.4.3 - Pass 1
Linux-Libc-Headers-2.6.11.2
Glibc-2.3.4
Adjusting the Toolchain
Tcl-8.4.9
Expect-5.43.0
DejaGNU-1.4.4
GCC-3.4.3 - Pass 2
Binutils-2.15.94.0.2.2 - Pass 2
Gawk-3.1.4
Coreutils-5.2.1
Bzip2-1.0.3
Gzip-1.3.5
Diffutils-2.8.1
Findutils-4.2.23
Make-3.80
Grep-2.5.1a
Sed-4.1.4
Gettext-0.14.3
Ncurses-5.4
Patch-2.5.4
Tar-1.15.1
Texinfo-4.8
Bash-3.0
M4-1.4.3
Bison-2.0
Flex-2.5.31
Util-linux-2.12q
Perl-5.8.7
Stripping
III. Building the LFS System
6. Installing Basic System Software
Introduction
Mounting Virtual Kernel File Systems
Entering the Chroot Environment
Changing Ownership
Creating Directories
Creating Essential Symlinks
Creating the passwd, group, and log Files
Populating /dev
Linux-Libc-Headers-2.6.11.2
Man-pages-2.01
Glibc-2.3.4
Re-adjusting the Toolchain
Binutils-2.15.94.0.2.2
GCC-3.4.3
Coreutils-5.2.1
Zlib-1.2.3
Mktemp-1.5
Iana-Etc-1.04
Findutils-4.2.23
Gawk-3.1.4
Ncurses-5.4
Readline-5.0
Vim-6.3
M4-1.4.3
Bison-2.0
Less-382
Groff-1.19.1
Sed-4.1.4
Flex-2.5.31
Gettext-0.14.3
Inetutils-1.4.2
IPRoute2-2.6.11-050330
Perl-5.8.7
Texinfo-4.8
Autoconf-2.59
Automake-1.9.5
Bash-3.0
File-4.13
Libtool-1.5.14
Bzip2-1.0.3
Diffutils-2.8.1
Kbd-1.12
E2fsprogs-1.37
Grep-2.5.1a
GRUB-0.96
Gzip-1.3.5
Hotplug-2004_09_23
Man-1.5p
Make-3.80
Module-Init-Tools-3.1
Patch-2.5.4
Procps-3.2.5
Psmisc-21.6
Shadow-4.0.9
Sysklogd-1.4.1
Sysvinit-2.86
Tar-1.15.1
Udev-056
Util-linux-2.12q
About Debugging Symbols
Stripping Again
Cleaning Up
7. Setting Up System Bootscripts
Introduction
LFS-Bootscripts-3.2.1
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
Creating the /etc/hosts File
Configuring the network Script
8. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-2.6.11.12
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
Index