LFS is designed to be built in one session. That is, the instructions assume that the system will not be shut down during the process. That does not mean that the system has to be done in one sitting. The issue is that certain procedures have to be re-accomplished after a reboot if resuming LFS at different points.
These chapters are accomplished on the host system. When restarting, be careful of the following:
Procedures done as the root
user after Section 2.4 need to have the LFS environment
variable set FOR THE ROOT
USER.
These two chapters must be done as user lfs
. A su -
lfs needs to be done before any task in these
chapters. Failing to do that, you are at risk of installing
packages to the host, and potentially rendering it unusable.
The procedures in General Compilation Instructions are critical. If there is any doubt about installing a package, ensure any previously expanded tarballs are removed, then re-extract the package files, and complete all instructions in that section.
You must boot the temporary system on the target machine.
A few operations, from “Preparing Virtual Kernel File Systems” to “Setting up Environment” must be done.
The operations in Section 7.13, “Setting Up Loopback Network Interface with IPRoute-5.14.0” must be done before starting or continuing from Chapter 8.