%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 The udev-lfs tarball contains LFS-specific files used to build Udev. Unpack it into the Udev source directory: tar -xvf ../&udev-lfs;.tar.bz2 Compile the package: make -f udev-lfs-&systemd-version;/Makefile.lfs Install the package: make -f udev-lfs-&systemd-version;/Makefile.lfs install 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-&systemd-version;/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