Linux From Scratch - Версия 7.3

Глава 6.
Установка
базовых
системных
пакетов

6.61. Udev-197
(Extracted from systemd-197)

The Udev package contains programs for dynamic creation of device
nodes. The development of udev has been merged with systemd, but
most of systemd is incompatible with LFS. Here we build and install
just the needed udev files.

Приблизительное
время
сборки:0.1 SBU

Требует
свободного
места на
диске:23 MB

6.61.1. Installation of Udev

Замечание

This package is a little different from other packages. The
initial package that is extracted is systemd-197.tar.xz even though the application
we are installing is udev. After changing to the systemd
directory, follow the instructions below.

The udev-lfs tarball contains LFS-specific files used to build
Udev. Unpack it into the systemd source directory:

tar -xvf ../udev-lfs-197-2.tar.bz2

Compile the package:

make -f udev-lfs-197-2/Makefile.lfs

Install the package:

make -f udev-lfs-197-2/Makefile.lfs install

Предостережение

There are several places within the systemd source code that have explicit
directory paths embedded. For instance, the binary version of the
hardware database's path and file name used at run time,
/etc/udev/hwdb.bin, cannot be
changed without explict changes to the source code.

Now initialize the hardware database:

build/udevadm hwdb --update

Finally set up the persistent network udev rules. This task will be
explained in detail in Раздел 7.2.1,
«Creating stable names for network interfaces». Note that the
/sys and /proc filesystems must be mounted in the chroot
environment as explained at the beginning of this chapter for the
following script to work.