Linux From Scratch
Version 7.9-systemd
Created by Gerard
Beekmans
Edited by Douglas R. Reno
and DJ Lucas
Copyright
� 1999-2016 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
Setting The $LFS Variable
Mounting the New Partition
3. Packages and Patches
Introduction
All Packages
Needed Patches
4. Final Preparations
Introduction
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.26 - Pass 1
GCC-5.3.0 - Pass 1
Linux-4.4.2 API Headers
Glibc-2.23
Libstdc++-5.3.0
Binutils-2.26 - Pass 2
GCC-5.3.0 - Pass 2
Tcl-core-8.6.4
Expect-5.45
DejaGNU-1.5.3
Check-0.10.0
Ncurses-6.0
Bash-4.3.30
Bzip2-1.0.6
Coreutils-8.25
Diffutils-3.3
File-5.25
Findutils-4.6.0
Gawk-4.1.3
Gettext-0.19.7
Grep-2.23
Gzip-1.6
M4-1.4.17
Make-4.1
Patch-2.7.5
Perl-5.22.1
Sed-4.2.2
Tar-1.28
Texinfo-6.1
Util-linux-2.27.1
Xz-5.2.2
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-4.4.2 API Headers
Man-pages-4.04
Glibc-2.23
Adjusting the Toolchain
Zlib-1.2.8
File-5.25
Binutils-2.26
GMP-6.1.0
MPFR-3.1.3
MPC-1.0.3
GCC-5.3.0
Bzip2-1.0.6
Pkg-config-0.29
Ncurses-6.0
Attr-2.4.47
Acl-2.2.52
Libcap-2.25
Sed-4.2.2
Shadow-4.2.1
Psmisc-22.21
Iana-Etc-2.30
M4-1.4.17
Bison-3.0.4
Flex-2.6.0
Grep-2.23
Readline-6.3
Bash-4.3.30
Bc-1.06.95
Libtool-2.4.6
GDBM-1.11
Gperf-3.0.4
Expat-2.1.0
Inetutils-1.9.4
Perl-5.22.1
XML::Parser-2.44
Intltool-0.51.0
Autoconf-2.69
Automake-1.15
Xz-5.2.2
Kmod-22
Gettext-0.19.7
Systemd-229
Procps-ng-3.3.11
E2fsprogs-1.42.13
Coreutils-8.25
Diffutils-3.3
Gawk-4.1.3
Findutils-4.6.0
Groff-1.22.3
GRUB-2.02~beta2
Less-481
Gzip-1.6
IPRoute2-4.4.0
Kbd-2.0.3
Libpipeline-1.4.1
Make-4.1
Patch-2.7.5
D-Bus-1.10.6
Util-linux-2.27.1
Man-DB-2.7.5
Tar-1.28
Texinfo-6.1
Vim-7.4
About Debugging Symbols
Stripping Again
Cleaning Up
7. Basic System Configuration
Introduction
General Network Configuration
Device and Module Handling on an LFS System
Creating Custom Symlinks to Devices
Configuring the system clock
Configuring the Linux Console
Configuring the System Locale
Creating the /etc/inputrc File
Creating the /etc/shells File
Systemd Usage and Configuration
8. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-4.4.2
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. LFS Licenses
Creative Commons License
The MIT License
Index