https://www.linuxfromscratch.org/lfs/view/stable/ Linux From Scratch Version 12.0 Published September 1st, 2023 Created by Gerard Beekmans Managing Editor: Bruce Dubbs Copyright (c) 1999-2023 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 o How to Build an LFS System o What's new since the last release o Changelog o Resources o Help * II. Preparing for the Build + 2. Preparing the Host System o Introduction o Host System Requirements o Building LFS in Stages o Creating a New Partition o Creating a File System on the Partition o Setting The $LFS Variable o Mounting the New Partition + 3. Packages and Patches o Introduction o All Packages o Needed Patches + 4. Final Preparations o Introduction o Creating a Limited Directory Layout in the LFS Filesystem o Adding the LFS User o Setting Up the Environment o About SBUs o About the Test Suites * III. Building the LFS Cross Toolchain and Temporary Tools + Important Preliminary Material o Introduction o Toolchain Technical Notes o General Compilation Instructions + 5. Compiling a Cross-Toolchain o Introduction o Binutils-2.41 - Pass 1 o GCC-13.2.0 - Pass 1 o Linux-6.4.12 API Headers o Glibc-2.38 o Libstdc++ from GCC-13.2.0 + 6. Cross Compiling Temporary Tools o Introduction o M4-1.4.19 o Ncurses-6.4 o Bash-5.2.15 o Coreutils-9.3 o Diffutils-3.10 o File-5.45 o Findutils-4.9.0 o Gawk-5.2.2 o Grep-3.11 o Gzip-1.12 o Make-4.4.1 o Patch-2.7.6 o Sed-4.9 o Tar-1.35 o Xz-5.4.4 o Binutils-2.41 - Pass 2 o GCC-13.2.0 - Pass 2 + 7. Entering Chroot and Building Additional Temporary Tools o Introduction o Changing Ownership o Preparing Virtual Kernel File Systems o Entering the Chroot Environment o Creating Directories o Creating Essential Files and Symlinks o Gettext-0.22 o Bison-3.8.2 o Perl-5.38.0 o Python-3.11.4 o Texinfo-7.0.3 o Util-linux-2.39.1 o Cleaning up and Saving the Temporary System * IV. Building the LFS System + 8. Installing Basic System Software o Introduction o Package Management o Man-pages-6.05.01 o Iana-Etc-20230810 o Glibc-2.38 o Zlib-1.2.13 o Bzip2-1.0.8 o Xz-5.4.4 o Zstd-1.5.5 o File-5.45 o Readline-8.2 o M4-1.4.19 o Bc-6.6.0 o Flex-2.6.4 o Tcl-8.6.13 o Expect-5.45.4 o DejaGNU-1.6.3 o Binutils-2.41 o GMP-6.3.0 o MPFR-4.2.0 o MPC-1.3.1 o Attr-2.5.1 o Acl-2.3.1 o Libcap-2.69 o Libxcrypt-4.4.36 o Shadow-4.13 o GCC-13.2.0 o Pkgconf-2.0.1 o Ncurses-6.4 o Sed-4.9 o Psmisc-23.6 o Gettext-0.22 o Bison-3.8.2 o Grep-3.11 o Bash-5.2.15 o Libtool-2.4.7 o GDBM-1.23 o Gperf-3.1 o Expat-2.5.0 o Inetutils-2.4 o Less-643 o Perl-5.38.0 o XML::Parser-2.46 o Intltool-0.51.0 o Autoconf-2.71 o Automake-1.16.5 o OpenSSL-3.1.2 o Kmod-30 o Libelf from Elfutils-0.189 o Libffi-3.4.4 o Python-3.11.4 o Flit-Core-3.9.0 o Wheel-0.41.1 o Ninja-1.11.1 o Meson-1.2.1 o Coreutils-9.3 o Check-0.15.2 o Diffutils-3.10 o Gawk-5.2.2 o Findutils-4.9.0 o Groff-1.23.0 o GRUB-2.06 o Gzip-1.12 o IPRoute2-6.4.0 o Kbd-2.6.1 o Libpipeline-1.5.7 o Make-4.4.1 o Patch-2.7.6 o Tar-1.35 o Texinfo-7.0.3 o Vim-9.0.1677 o MarkupSafe-2.1.3 o Jinja2-3.1.2 o Udev from Systemd-254 o Man-DB-2.11.2 o Procps-ng-4.0.3 o Util-linux-2.39.1 o E2fsprogs-1.47.0 o Sysklogd-1.5.1 o Sysvinit-3.07 o About Debugging Symbols o Stripping o Cleaning Up + 9. System Configuration o Introduction o LFS-Bootscripts-20230728 o Overview of Device and Module Handling o Managing Devices o General Network Configuration o System V Bootscript Usage and Configuration o The Bash Shell Startup Files o Creating the /etc/inputrc File o Creating the /etc/shells File + 10. Making the LFS System Bootable o Introduction o Creating the /etc/fstab File o Linux-6.4.12 o Using GRUB to Set Up the Boot Process + 11. The End o The End o Get Counted o Rebooting the System o Additional Resources o Getting Started After LFS * V. Appendices + A. Acronyms and Terms + B. Acknowledgments + C. Dependencies + D. Boot and sysconfig scripts version-20230728 o /etc/rc.d/init.d/rc o /lib/lsb/init-functions o /etc/rc.d/init.d/mountvirtfs o /etc/rc.d/init.d/modules o /etc/rc.d/init.d/udev o /etc/rc.d/init.d/swap o /etc/rc.d/init.d/setclock o /etc/rc.d/init.d/checkfs o /etc/rc.d/init.d/mountfs o /etc/rc.d/init.d/udev_retry o /etc/rc.d/init.d/cleanfs o /etc/rc.d/init.d/console o /etc/rc.d/init.d/localnet o /etc/rc.d/init.d/sysctl o /etc/rc.d/init.d/sysklogd o /etc/rc.d/init.d/network o /etc/rc.d/init.d/sendsignals o /etc/rc.d/init.d/reboot o /etc/rc.d/init.d/halt o /etc/rc.d/init.d/template o /etc/sysconfig/modules o /etc/sysconfig/createfiles o /etc/sysconfig/udev-retry o /sbin/ifup o /sbin/ifdown o /lib/services/ipv4-static o /lib/services/ipv4-static-route + E. Udev configuration rules o 55-lfs.rules + F. LFS Licenses o Creative Commons License o The MIT License * Index * Next Preface * . * .