2.3. Les étapes de la construction de LFS

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.

2.3.1. Chapitres 1 à 4

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.

2.3.2. Chapitres 5–6

  • La partition /mnt/lfs doit être montée.

  • 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 Instructions générales de compilation 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.

2.3.3. Chapters 7–10

  • La partition /mnt/lfs doit être montée.

  • A few operations, from « Changing Ownership » to « Entering the Chroot Environment », must be done as the root user, with the LFS environment variable set for the root user.

  • When entering chroot, the LFS environment variable must be set for root. The LFS variable is not used after the chroot environment has been entered.

  • Les systèmes de fichiers virtuels doivent être montés. Ceci peut se faire avant ou après être entré dans l’environnement chroot en changeant de terminal dans le système hôte et, en root, en exécutant les commandes de la Section 7.3.1, « Monter et peupler /dev » et de la Section 7.3.2, « Monter les systèmes de fichiers virtuels du noyau ».