Linux From Scratch
Version 10.0-systemd-rc1
Published August 15th, 2020
Created by Gerard
Beekmans
Managing Editor: Bruce
Dubbs
Editor: Douglas R.
Reno
Editor: DJ
Lucas
Copyright
© 1999-2020 Gerard Beekmans
Table of Contents
Preface
Foreword
Audience
LFS Target Architectures
Prerequisites
LFS and Standards
Rationale for Packages in the Book
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 the Host System
Introduction
Host System Requirements
Building LFS in Stages
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 a limited directory layout in LFS filesystem
Adding the LFS User
Setting Up the Environment
About SBUs
About the Test Suites
III. Building the LFS Cross Toolchain and Temporary Tools
Important Preliminary Material
Introduction
Toolchain Technical Notes
General Compilation Instructions
5. Compiling a Cross-Toolchain
Introduction
Binutils-2.35 - Pass 1
GCC-10.2.0 - Pass 1
Linux-5.8.1 API Headers
Glibc-2.32
Libstdc++ from GCC-10.2.0, Pass 1
6. Cross Compiling Temporary Tools
Introduction
M4-1.4.18
Ncurses-6.2
Bash-5.0
Coreutils-8.32
Diffutils-3.7
File-5.39
Findutils-4.7.0
Gawk-5.1.0
Grep-3.4
Gzip-1.10
Make-4.3
Patch-2.7.6
Sed-4.8
Tar-1.32
Xz-5.2.5
Binutils-2.35 - Pass 2
GCC-10.2.0 - Pass 2
7. Entering Chroot and Building Additional Temporary Tools
Introduction
Changing Ownership
Preparing Virtual Kernel File Systems
Entering the Chroot Environment
Creating Directories
Creating Essential Files and Symlinks
Libstdc++ from GCC-10.2.0, Pass 2
Gettext-0.21
Bison-3.7.1
Perl-5.32.0
Python-3.8.5
Texinfo-6.7
Util-linux-2.36
Cleaning up and Saving the Temporary System
IV. Building the LFS System
8. Installing Basic System Software
Introduction
Package Management
Man-pages-5.08
Tcl-8.6.10
Expect-5.45.4
DejaGNU-1.6.2
Iana-Etc-20200429
Glibc-2.32
Zlib-1.2.11
Bzip2-1.0.8
Xz-5.2.5
Zstd-1.4.5
File-5.39
Readline-8.0
M4-1.4.18
Bc-3.1.5
Flex-2.6.4
Binutils-2.35
GMP-6.2.0
MPFR-4.1.0
MPC-1.1.0
Attr-2.4.48
Acl-2.2.53
Libcap-2.42
Shadow-4.8.1
GCC-10.2.0
Pkg-config-0.29.2
Ncurses-6.2
Sed-4.8
Psmisc-23.3
Gettext-0.21
Bison-3.7.1
Grep-3.4
Bash-5.0
Libtool-2.4.6
GDBM-1.18.1
Gperf-3.1
Expat-2.2.9
Inetutils-1.9.4
Perl-5.32.0
XML::Parser-2.46
Intltool-0.51.0
Autoconf-2.69
Automake-1.16.2
Kmod-27
Libelf from Elfutils-0.180
Libffi-3.3
OpenSSL-1.1.1g
Python-3.8.5
Ninja-1.10.0
Meson-0.55.0
Coreutils-8.32
Check-0.15.2
Diffutils-3.7
Gawk-5.1.0
Findutils-4.7.0
Groff-1.22.4
GRUB-2.04
Less-551
Gzip-1.10
IPRoute2-5.8.0
Kbd-2.3.0
Libpipeline-1.5.3
Make-4.3
Patch-2.7.6
Man-DB-2.9.3
Tar-1.32
Texinfo-6.7
Vim-8.2.1361
Systemd-246
D-Bus-1.12.20
Procps-ng-3.3.16
Util-linux-2.36
E2fsprogs-1.45.6
About Debugging Symbols
Stripping Again
Cleaning Up
9. System Configuration
Introduction
General Network Configuration
Overview of Device and Module Handling
Managing 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
10. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-5.8.1
Using GRUB to Set Up the Boot Process
11. The End
The End
Get Counted
Rebooting the System
What Now?
V. Appendices
A. Acronyms and Terms
B. Acknowledgments
C. Dependencies
D. LFS Licenses
Creative Commons License
The MIT License
Index