Zirconium Linux From Scratch
Version r13-178-systemd
Published August 10th, 2026
Created by Gerard
Beekmans
Editor: Zed
Matrix
Copyright
© 1999-2026 Gerard Beekmans
Table of Contents
Preface
Foreword
Audience
LFS Target Architectures
Prerequisites
LFS and Standards
Rationale for Packages in the Book
Typography
Structure
Errata and Security Advisories
I. Introduction
1. Introduction
How to Build a Zirconium 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 and the Umask
Mounting the New Partition
3. Packages and Patches
Introduction
All Packages
Needed Patches
4. Final Preparations
Introduction
Creating a Limited Directory Layout in the 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.47 - Pass 1
GCC-16.2.0 - Pass 1
Linux-7.1.7 API Headers
Glibc-2.44
Libstdc++ from GCC-16.2.0
6. Cross Compiling Temporary Tools
Introduction
M4-1.4.21
Ncurses-6.6
Bash-5.3.15
Coreutils-9.11
Diffutils-3.12
File-5.48
Findutils-4.11.0
Gawk-5.4.1
Grep-3.12
Gzip-1.14
Make-4.4.1
Patch-2.8
Sed-4.10
Tar-1.35
Xz-5.8.3
Nano-9.2
Binutils-2.47 - Pass 2
GCC-16.2.0 - Pass 2
7. Entering Chroot and Building Additional Temporary Tools
Introduction
Changing Ownership
Zlfs-chroot script
Preparing Virtual Kernel File Systems
Entering the Chroot Environment
Creating Directories
Creating Essential Files and Symlinks
Gettext-1.0
Bison-3.8.2
Perl-5.44.0
Zlib-1.3.2
Python-3.14.7
Texinfo-7.3
Util-linux-2.42.2
Cleaning up and Saving the Temporary System
IV. Building the LFS System
8. Installing Basic System Software
Introduction
Package Management
Iana-Etc-20260723
Glibc-2.44
Zlib-1.3.2
Bzip2-1.0.8
Xz-5.8.3
Lz4-1.10.0
Zstd-1.5.7
File-5.48
Readline-8.3
Pcre2-10.47
M4-1.4.21
Bc-7.0.3
Flex-2.6.4
Tcl-8.6.18
Expect-5.45.4
DejaGNU-1.6.3
Ninja-1.13.2
Flit-Core-4.0.2
Packaging-26.3
Wheel-0.47.0
Setuptools-83.0.0
Meson-1.11.2
Pkgconf-3.0.5
Binutils-2.47
GMP-6.3.0
MPFR-4.2.2
MPC-1.4.1
Attr-2.6.0
Acl-2.4.0
Libcap-2.78
Libxcrypt-4.5.2
Shadow-4.20.0
Gawk-5.4.1
GCC-16.2.0
Ncurses-6.6
Sed-4.10
Psmisc-23.7
Gettext-1.0
Bison-3.8.2
Grep-3.12
Bash-5.3.15
Libtool-2.5.4
GDBM-1.26
Gperf-3.3
Expat-2.8.2
Inetutils-2.8
Less-704
Perl-5.44.0
Class::Inspector-1.36
File::ShareDir::Install-0.14
File::ShareDir-1.118
XML::Parser-2.59
Intltool-0.51.0
Autoconf-2.73
Automake-1.18.1
OpenSSL-4.0.1
Libelf from Elfutils-0.195
Libffi-3.7.1
Sqlite-3530400
Python-3.14.7
Kmod-34.2
Coreutils-9.11
Diffutils-3.12
Findutils-4.11.0
Groff-1.24.1
Gzip-1.14
IPRoute2-7.1.0
Kbd-2.10.0
Libpipeline-1.5.8
Make-4.4.1
Patch-2.8
Tar-1.35
Texinfo-7.3
Nano-9.2
Vim-9.2.0481
MarkupSafe-3.0.3
Jinja2-3.1.6
Pyelftools-0.33
Systemd-261.2
D-Bus-1.16.2
Man-pages-6.18
Man-DB-2.13.1
Procps-ng-4.0.6
Util-linux-2.42.2
E2fsprogs-1.47.4
Which-2.25 and Alternatives
OpenSSH-10.4p1
Cleaning Up
About Debugging Symbols
Stripping
9. System Configuration
Introduction
General Network Configuration
zlfs-scripts-20260710T0847Z
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
libaio-0.3.113
libunistring-1.4.2
libidn2-2.3.8
libtasn1-4.21.0
libpsl-0.23.0
libusb-1.0.30
Libpng-1.6.58
Hwdata-0.409
Popt-1.19
p11-kit-0.26.5
make-ca-1.16.1
pciutils-3.15.0
usbutils-019
Wget-1.25.0
cURL-8.21.0
dosfstools-4.2
efivar-39
efibootmgr-18
LVM2-2.03.41
Fuse-3.18.2
FreeType-2.14.3
GRUB-2.14
10. Making the LFS System Bootable
Introduction
Creating the /etc/fstab File
Linux-7.1.7
Using GRUB to Set Up the Boot Process
Using Systemd-boot to Set Up the Boot Process
11. The End
The End
Get Counted
Rebooting the System
Additional Resources
Getting Started After LFS
V. Appendices
A. Acronyms and Terms
B. Acknowledgments
C. Dependencies
D. LFS Licenses
Creative Commons License
The MIT License
Index