Linux From Scratch
Version 7.3-rc1
Created by Gerard
Beekmans
Edited by Matthew Burgess
and Bruce Dubbs
Copyright
© 1999-2013 Gerard Beekmans
Table of Contents
Preface
Foreword
Audience
LFS Target Architectures
LFS and Standards
Rationale for Packages in the Book
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.23.1 - Pass 1
GCC-4.7.2 - Pass 1
Linux-3.7.9 API Headers
Glibc-2.17
Binutils-2.23.1 - Pass 2
GCC-4.7.2 - Pass 2
Tcl-8.6.0
Expect-5.45
DejaGNU-1.5
Check-0.9.9
Ncurses-5.9
Bash-4.2
Bzip2-1.0.6
Coreutils-8.21
Diffutils-3.2
File-5.11
Findutils-4.4.2
Gawk-4.0.2
Gettext-0.18.2
Grep-2.14
Gzip-1.5
M4-1.4.16
Make-3.82
Patch-2.7.1
Perl-5.16.2
Sed-4.2.2
Tar-1.26
Texinfo-5.0
Xz-5.0.4
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-3.7.9 API Headers
Man-pages-3.47
Glibc-2.17
Adjusting the Toolchain
Zlib-1.2.7
File-5.11
Binutils-2.23.1
GMP-5.1.1
MPFR-3.1.1
MPC-1.0.1
GCC-4.7.2
Sed-4.2.2
Bzip2-1.0.6
Pkg-config-0.28
Ncurses-5.9
Util-linux-2.22.2
Psmisc-22.20
Procps-ng-3.3.6
E2fsprogs-1.42.7
Shadow-4.1.5.1
Coreutils-8.21
Iana-Etc-2.30
M4-1.4.16
Bison-2.7
Grep-2.14
Readline-6.2
Bash-4.2
Libtool-2.4.2
GDBM-1.10
Inetutils-1.9.1
Perl-5.16.2
Autoconf-2.69
Automake-1.13.1
Diffutils-3.2
Gawk-4.0.2
Findutils-4.4.2
Flex-2.5.37
Gettext-0.18.2
Groff-1.22.2
Xz-5.0.4
GRUB-2.00
Less-451
Gzip-1.5
IPRoute2-3.7.0
Kbd-1.15.5
Kmod-12
Libpipeline-1.2.2
Make-3.82
Man-DB-2.6.3
Patch-2.7.1
Sysklogd-1.5
Sysvinit-2.88dsf
Tar-1.26
Texinfo-5.0
Udev-197 (Extracted from systemd-197)
Vim-7.3
About Debugging Symbols
Stripping Again
Cleaning Up
7. Setting Up System Bootscripts
Introduction
General Network Configuration
Customizing the /etc/hosts File
Device and Module Handling on an LFS System
Creating Custom Symlinks to Devices
LFS-Bootscripts-20130123
How Do These Bootscripts Work?
Configuring the system hostname
Configuring the setclock Script
Configuring the Linux Console
Configuring the sysklogd Script
The rc.site File
The Bash Shell Startup Files
Creating the /etc/inputrc File
8. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-3.7.9
Using GRUB to Set Up the Boot Process
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-20130123
/etc/rc.d/init.d/rc
/lib/lsb/init-functions
/etc/rc.d/init.d/functions
/etc/rc.d/init.d/mountvirtfs
/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/modules
/etc/sysconfig/createfiles
/etc/sysconfig/udev-retry
/sbin/ifup
/sbin/ifdown
/lib/services/ipv4-static
/lib/services/ipv4-static-route
E. Udev configuration rules
55-lfs.rules
F. LFS Licenses
Creative Commons License
The MIT License
Index