
Linux From Scratch - Version 7.0
116
6.21. Util-linux-2.20
The Util-linux package contains miscellaneous utility programs. Among them are utilities for handling file systems,
consoles, partitions, and messages.
Approximate build time: 0.7 SBU
Required disk space: 69 MB
6.21.1. FHS compliance notes
The FHS recommends using the /var/lib/hwclock directory instead of the usual /etc directory as the location
for the adjtime file. To make the hwclock program FHS-compliant, run the following:
sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
-i $(grep -rl '/etc/adjtime' .)
mkdir -pv /var/lib/hwclock
6.21.2. Installation of Util-linux
./configure --enable-arch --enable-partx --enable-write
The meaning of the configure options:
--enable-arch
Enables building the arch program
--enable-partx
Enables building the addpart, delpart and partx programs
--enable-write
Enables building the write program
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install
6.21.3. Contents of Util-linux
Installed programs: addpart, agetty, arch, blkid, blockdev, cal, cfdisk, chkdupexe, chrt, col, colcrt, colrm,
column, ctrlaltdel, cytune, ddate, delpart, dmesg, fallocate, fdformat, fdisk, findfs,
findmnt, flock, fsck, fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump,
hwclock, i386, ionice, ipcmk, ipcrm, ipcs, isosize, ldattach, line, linux32, linux64,
logger, look, losetup, lsblk, lscpu, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix,
mkswap, more, mount, mountpoint, namei, partx, pg, pivot_root, readprofile, rename,
renice, rev, rtcwake, script, scriptreplay, setarch, setsid, setterm, sfdisk, swaplabel,
swapoff (link to swapon), swapon, switch_root, tailf, taskset, tunelp, ul, umount,
unshare, uuidd, uuidgen, wall, whereis, wipefs, and write
Installed libraries: libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so}
Installed directories: /usr/share/getopt, /var/lib/hwclock
Comentarios a estos manuales