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. This does not mean that the system has to be built in one sitting. The issue is that certain procedures must be repeated after a reboot when resuming LFS at different points.
These chapters run commands on the host system. When restarting, be certain of one thing:
Procedures performed as the root
user after Section 2.4 must have the
LFS environment variable set FOR
THE ROOT USER.
The /mnt/lfs partition must be mounted.
These two chapters must be done as user lfs
. A su -
lfs command must be issued before performing
any task in these chapters. If you don't 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 a package has been installed correctly, ensure the previously expanded tarball has been removed, then re-extract the package, and complete all the 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.12, “Setting Up Loopback Network Interface with IPRoute-6.10.0” must be done before starting or continuing from Chapter 8