Over the years I've had many users make mistakes in building LFS
that arise from building a part of LFS, shutting down, and trying to
restart. Not understanding the critical steps needed causes issues that
include destroying the host system. A less drastic event often requires a
user to restart the entire build "from scratch".
I am thinking about adding a new section to the book. I'm not sure where
to place it. It could go in the Preface, but many users skip that. For
example, the Host System Requirements is often overlooked. We could also
move that to Chapter 2.
This new section could go in the Preface, Chapter 2, or Chapter 4.
I would like feedback about both content and placement. Thanks.
-- Bruce
Building LFS in Stages
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 restarting LFS at
different points.
Chapters 1-4.
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.
Chapter 5
The /mnt/lfs partition must be mounted.
ALL instructions in Chapter 5 must be done by user lfs. A
'su - lfs' needs to be done before any task in Chapter 5.
The procedures in Section 5.3 are critical. If there is
any doubt about installing a package, ensure any previously
expanded tarballs are removed, re-extract the package files,
and complete all instructions in that section.
Chapters 6-8
The /mnt/lfs partition must be mounted.
When entering chroot, the LFS environment variable must be
set for root. The LFS variable is not used otherwise.
The virtual file systems must be mounted. This can be done
after entering chroot by changing to a host virtual terminal
and, as root, running the commands in Sections 6.2.2 and
5.2.3.
Section 8.4
If a separate /boot partition was created on the host system, that
partition needs to bound to the LFS partition before copying the kernel
and associated files to /boot. To do this, run the following command as
the root user from the host system (i.e. not chroot):
# mount --bind /boot /mnt/lfs/boot
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page