%general-entities; ]> udev &systemd-version;
&systemd-url;
Udev-&systemd-version; (Extracted from systemd-&systemd-version;) Udev <para>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.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&systemd-ch6-sbu;</seg> <seg>&systemd-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Udev This package is a little different from other packages. The initial package that is extracted is systemd-&systemd-version;.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;.tar.bz2 Compile the package: make -f &udev-lfs;/Makefile.lfs Install the package: make -f &udev-lfs;/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 . 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. bash &udev-lfs;/init-net-rules.sh Contents of Udev Installed programs Installed libraries Installed directories accelerometer, ata_id, cdrom_id, collect, mtd_probe, scsi_id, v4l_id, udevadm, and udevd libudev.so /etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev Short Descriptions ata_id Provides Udev with a unique string and additional information (uuid, label) for an ATA drive ata_id cdrom_id Provides Udev with the capabilities of a CD-ROM or DVD-ROM drive cdrom_id collect Given an ID for the current uevent and a list of IDs (for all target uevents), registers the current ID and indicates whether all target IDs have been registered collect scsi_id Provides Udev with a unique SCSI identifier based on the data returned from sending a SCSI INQUIRY command to the specified device scsi_id udevadm Generic udev administration tool: controls the udevd daemon, provides info from the Udev database, monitors uevents, waits for uevents to finish, tests Udev configuration, and triggers uevents for a given device udevadm udevd A daemon that listens for uevents on the netlink socket, creates devices and runs the configured external programs in response to these uevents udevd libudev A library interface to udev device information libudev /etc/udev Contains Udev configuration files, device permissions, and rules for device naming /etc/udev