6.19. Programs from Util-linux-2.39.3

agetty, mount, and setsid are utilities in Util-Linux. We need them to set up the environment once we boot the temporary system.

Approximate build time: less than 0.1 SBU
Required disk space: 85 MB

6.19.1. Installation of agetty, setsid and mount

Prepare Util-linux for compilation:

./configure --build=$(config/config.guess) --host=$LFS_TGT --disable-shared

The meaning of the configure option:

--disable-shared

We do not need to install any of the shared libraries at this time, therefore there is no need to build them.

We only need three tools from the package now, build them:

make agetty mount setsid

Install the tools:

install -vm755 agetty       $LFS/usr/sbin
install -vm755 mount setsid $LFS/usr/bin

Details on this package are located in Section 8.79.2, “Contents of Util-linux.”