The Util-linux package contains miscellaneous utility programs. Among them are utilities for handling file systems, consoles, partitions, and messages.
Approximate build time: 0.2 SBU Required disk space: 16 MB
Util-linux installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Zlib.
Util-linux doesn't use the freshly installed headers and libraries from the /tools directory. This is fixed by altering the configure script:
cp configure configure.backup sed "s@/usr/include@/tools/include@g" configure.backup > configure
Prepare Util-linux for compilation:
./configure
Compile some support routines:
make -C lib
Since you'll only need a couple of the utilities contained in this package, build just those:
make -C mount mount umount make -C text-utils more
Now copy these programs to the temporary tools directory:
cp mount/{,u}mount text-utils/more /tools/bin
The details on this package are found in the section called “Contents of Util-linux”.