source: chapter06/systemd.xml@ d29a03b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since d29a03b was d29a03b, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to udev (systemd)-188

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9933 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-udev" role="wrap">
9 <?dbhtml filename="udev.html"?>
10
11 <sect1info condition="script">
12 <productname>udev</productname>
13 <productnumber>&systemd-version;</productnumber>
14 <address>&systemd-url;</address>
15 </sect1info>
16
17 <title>Udev-&systemd-version; (Extracted from systemd-&systemd-version;)</title>
18
19 <indexterm zone="ch-system-udev">
20 <primary sortas="a-Udev">Udev</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Udev package contains programs for dynamic creation of device
27 nodes. The development of udev has been merged with systemd, but
28 most of systemd is incompatible with LFS. Here we build and install just
29 the needed udev files.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&systemd-ch6-sbu;</seg>
37 <seg>&systemd-ch6-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Udev</title>
44
45 <para>The udev-lfs tarball contains LFS-specific files used to build
46 Udev. Unpack it into the Udev source directory:</para>
47
48<screen><userinput remap="pre">tar -xvf ../&udev-lfs;.tar.bz2</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput remap="make">make -f udev-lfs-&systemd-version;/Makefile.lfs</userinput></screen>
53
54 <para>Install the package:</para>
55
56<screen><userinput remap="install">make -f udev-lfs-&systemd-version;/Makefile.lfs install</userinput></screen>
57
58 <para>Finally set up the persistent network udev rules. This task will be
59 explained in detail in <xref linkend='stable-net-names'/>. Note that the
60 <filename class='directory'>/sys</filename> and <filename
61 class='directory'>/proc</filename> filesystems must be mounted in the
62 chroot environment as explained at the beginning of this chapter for the
63 following script to work.</para>
64
65<screen><userinput remap="install">bash udev-lfs-&systemd-version;/init-net-rules.sh</userinput></screen>
66 </sect2>
67
68 <sect2 id="contents-udev" role="content">
69 <title>Contents of Udev</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed libraries</segtitle>
74 <segtitle>Installed directories</segtitle>
75
76 <seglistitem>
77 <seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe,
78 scsi_id, v4l_id, udevadm, and udevd</seg>
79
80 <seg>libudev.so</seg>
81
82 <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="ata_id">
92 <term><command>ata_id</command></term>
93 <listitem>
94 <para>Provides Udev with a unique string and
95 additional information (uuid, label) for an ATA drive</para>
96 <indexterm zone="ch-system-udev ata_id">
97 <primary sortas="b-ata_id">ata_id</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry id="cdrom_id">
103 <term><command>cdrom_id</command></term>
104 <listitem>
105 <para>Provides Udev with the capabilities of a
106 CD-ROM or DVD-ROM drive</para>
107 <indexterm zone="ch-system-udev cdrom_id">
108 <primary sortas="b-cdrom_id">cdrom_id</primary>
109 </indexterm>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry id="collect">
114 <term><command>collect</command></term>
115 <listitem>
116 <para>Given an ID for the current uevent and a list of
117 IDs (for all target uevents), registers the current ID
118 and indicates whether all target IDs have been registered</para>
119 <indexterm zone="ch-system-udev collect">
120 <primary sortas="b-collect">collect</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="scsi_id">
126 <term><command>scsi_id</command></term>
127 <listitem>
128 <para>Provides Udev with a unique SCSI identifier
129 based on the data returned from sending a SCSI INQUIRY command to
130 the specified device</para>
131 <indexterm zone="ch-system-udev scsi_id">
132 <primary sortas="b-scsi_id">scsi_id</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="udevadm">
138 <term><command>udevadm</command></term>
139 <listitem>
140 <para>Generic udev administration tool: controls the udevd daemon,
141 provides info from the Udev database, monitors uevents, waits for
142 uevents to finish, tests Udev configuration, and triggers uevents
143 for a given device</para>
144 <indexterm zone="ch-system-udev udevadm">
145 <primary sortas="b-udevadm">udevadm</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="udevd">
151 <term><command>udevd</command></term>
152 <listitem>
153 <para>A daemon that listens for uevents on the netlink socket,
154 creates devices and runs the configured external programs in
155 response to these uevents</para>
156 <indexterm zone="ch-system-udev udevd">
157 <primary sortas="b-udevd">udevd</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="libudev">
163 <term><filename class="libraryfile">libudev</filename></term>
164 <listitem>
165 <para>A library interface to udev device information</para>
166 <indexterm zone="ch-system-udev libudev">
167 <primary sortas="c-libudev">libudev</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="etc-udev">
173 <term><filename class="directory">/etc/udev</filename></term>
174 <listitem>
175 <para>Contains Udev configuration files,
176 device permissions, and rules for device naming</para>
177 <indexterm zone="ch-system-udev etc-udev">
178 <primary sortas="e-/etc/udev">/etc/udev</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 </variablelist>
184
185 </sect2>
186
187</sect1>
Note: See TracBrowser for help on using the repository browser.