source: chapter06/udev.xml@ 878bc8bc

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.1 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 878bc8bc was 3119ddc, checked in by Matthew Burgess <matthew@…>, 13 years ago

Update list of installed files in a number of packages. Fixes #2979.

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

  • Property mode set to 100644
File size: 12.3 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>&udev-version;</productnumber>
14 <address>&udev-url;</address>
15 </sect1info>
16
17 <title>Udev-&udev-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.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&udev-ch6-sbu;</seg>
35 <seg>&udev-ch6-du; plus &udev-testfiles-du; for testfiles</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Udev</title>
43
44 <para>Optionally remove an unneeded warning message that shows up in this
45 version of udev at boot time.</para>
46
47<screen><userinput remap="pre">sed -i -e '/deprecated/d' udev/udevadm-trigger.c</userinput></screen>
48
49
50 <para>The udev-config tarball contains LFS-specific files used to configure
51 Udev. Unpack it into the Udev source directory:</para>
52
53<screen><userinput remap="pre">tar -xvf ../&udev-config;.tar.bz2</userinput></screen>
54
55 <para>The udev-testfiles tarball contains files needed to test udev. The
56 file expands to an apparent size of about 37MB but the actual disk usage
57 is less than 7MB.</para>
58
59<screen><userinput remap="pre">tar -xvf ../udev-&udev-version;-testfiles.tar.bz2 --strip-components=1</userinput></screen>
60
61 <para>Create some devices and directories that Udev cannot handle due to
62 them being required very early in the boot process, or by Udev itself:</para>
63
64<screen><userinput remap="install">install -dv /lib/{firmware,udev/devices/pts}
65mknod -m0666 /lib/udev/devices/null c 1 3</userinput></screen>
66
67 <para>Prepare the package for compilation:</para>
68
69<!-- Note that "libdir=/usr/lib64" would be required for multilib. -->
70<screen><userinput remap="configure">./configure --prefix=/usr \
71 --sysconfdir=/etc --sbindir=/sbin \
72 --with-rootlibdir=/lib --libexecdir=/lib/udev \
73 --disable-hwdb --disable-introspection \
74 --disable-keymap --disable-gudev</userinput></screen>
75
76 <variablelist>
77 <title>The meaning of the new configure options</title>
78
79 <varlistentry>
80 <term><parameter>--with-rootlibdir=/lib</parameter></term>
81 <listitem>
82 <para>This controls where the <filename
83 class="libraryfile">libudev</filename> library is installed. The
84 library needs to be in <filename class="directory">/lib</filename>
85 because it's used by Udev at boot time, before <filename
86 class="directory">/usr</filename> might be available, and the default
87 --rootlibdir is <filename class="directory">/usr/lib</filename>.</para>
88 </listitem>
89 </varlistentry>
90
91 <!-- Note that libexecdir *MUST* stay /lib/udev, even on a 64-bit
92 / multilib system where udev is compiled for 64-bit. Other
93 packages require this exact path; the udev maintainers have
94 said this is part of the udev API. -->
95 <varlistentry>
96 <term><parameter>--libexecdir=/lib/udev</parameter></term>
97 <listitem>
98 <para>This controls where Udev-internal rules and helper programs
99 are installed.</para>
100 </listitem>
101 </varlistentry>
102
103 <varlistentry>
104 <term><parameter>--disable-*</parameter></term>
105 <listitem>
106 <para>These options prevent Udev from installing helper programs and
107 other extras which require more external libraries. These libraries
108 are not part of the base LFS system. See the Udev
109 <filename>README</filename> file for more information.</para>
110 </listitem>
111 </varlistentry>
112 </variablelist>
113
114 <para>Compile the package:</para>
115
116<screen><userinput remap="make">make</userinput></screen>
117
118 <para>Test the package.</para>
119
120<screen><userinput remap="test">make check</userinput></screen>
121
122 <para>Install the package:</para>
123
124<screen><userinput remap="install">make install</userinput></screen>
125
126 <para>Remove an empty documentation directory:</para>
127
128<screen><userinput remap="install">rmdir -v /usr/share/doc/udev</userinput></screen>
129
130 <para>Now install the LFS-specific custom rules files:</para>
131
132<screen><userinput remap="install">cd &udev-config;
133make install</userinput></screen>
134
135 <para>Install the documentation that explains the LFS-specific rules
136 files:</para>
137
138<screen><userinput remap="install">make install-doc</userinput></screen>
139
140 </sect2>
141
142 <sect2 id="contents-udev" role="content">
143 <title>Contents of Udev</title>
144
145 <segmentedlist>
146 <segtitle>Installed programs</segtitle>
147 <segtitle>Installed libraries</segtitle>
148 <segtitle>Installed directories</segtitle>
149
150 <seglistitem>
151 <seg>ata_id, cdrom_id, collect, create_floppy_devices, edd_id,
152 firmware.sh, fstab_import, path_id, scsi_id, udevadm, udevd,
153 usb_id, write_cd_rules, and write_net_rules</seg>
154 <seg>libudev.{a,so}</seg>
155 <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev-config,
156 /usr/share/gtk-doc/html/libudev</seg>
157 </seglistitem>
158 </segmentedlist>
159
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="ata_id">
166 <term><command>ata_id</command></term>
167 <listitem>
168 <para>Provides Udev with a unique string and
169 additional information (uuid, label) for an ATA drive</para>
170 <indexterm zone="ch-system-udev ata_id">
171 <primary sortas="b-ata_id">ata_id</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="cdrom_id">
177 <term><command>cdrom_id</command></term>
178 <listitem>
179 <para>Provides Udev with the capabilities of a
180 CD-ROM or DVD-ROM drive</para>
181 <indexterm zone="ch-system-udev cdrom_id">
182 <primary sortas="b-cdrom_id">cdrom_id</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="collect">
188 <term><command>collect</command></term>
189 <listitem>
190 <para>Given an ID for the current uevent and a list of
191 IDs (for all target uevents), registers the current ID
192 and indicates whether all target IDs have been registered</para>
193 <indexterm zone="ch-system-udev collect">
194 <primary sortas="b-collect">collect</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="create_floppy_devices">
200 <term><command>create_floppy_devices</command></term>
201 <listitem>
202 <para>Creates all possible floppy devices based on the CMOS type</para>
203 <indexterm zone="ch-system-udev create_floppy_devices">
204 <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="edd_id">
210 <term><command>edd_id</command></term>
211 <listitem>
212 <para>Provides Udev with the EDD ID for a BIOS disk drive</para>
213 <indexterm zone="ch-system-udev edd_id">
214 <primary sortas="b-edd_id">edd_id</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="firmware.sh">
220 <term><command>firmware.sh</command></term>
221 <listitem>
222 <para>Uploads firmware to devices</para>
223 <indexterm zone="ch-system-udev firmware.sh">
224 <primary sortas="b-firmware.sh">firmware.sh</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="fstab_import">
230 <term><command>fstab_import</command></term>
231 <listitem>
232 <para>Finds an entry in <filename>/etc/fstab</filename> that
233 matches the current device, and provides its information to
234 Udev</para>
235 <indexterm zone="ch-system-udev fstab_import">
236 <primary sortas="b-fstab_import">fstab_import</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="path_id">
242 <term><command>path_id</command></term>
243 <listitem>
244 <para>Provides the shortest possible unique hardware path to a
245 device</para>
246 <indexterm zone="ch-system-udev path_id">
247 <primary sortas="b-path_id">path_id</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="scsi_id">
253 <term><command>scsi_id</command></term>
254 <listitem>
255 <para>Provides Udev with a unique SCSI identifier
256 based on the data returned from sending a SCSI INQUIRY command to
257 the specified device</para>
258 <indexterm zone="ch-system-udev scsi_id">
259 <primary sortas="b-scsi_id">scsi_id</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="udevadm">
265 <term><command>udevadm</command></term>
266 <listitem>
267 <para>Generic udev administration tool: controls the udevd daemon,
268 provides info from the Udev database, monitors uevents, waits for
269 uevents to finish, tests Udev configuration, and triggers uevents
270 for a given device</para>
271 <indexterm zone="ch-system-udev udevadm">
272 <primary sortas="b-udevadm">udevadm</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="udevd">
278 <term><command>udevd</command></term>
279 <listitem>
280 <para>A daemon that listens for uevents on the netlink socket,
281 creates devices and runs the configured external programs in
282 response to these uevents</para>
283 <indexterm zone="ch-system-udev udevd">
284 <primary sortas="b-udevd">udevd</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="usb_id">
290 <term><command>usb_id</command></term>
291 <listitem>
292 <para>Provides Udev with information about USB
293 devices</para>
294 <indexterm zone="ch-system-udev usb_id">
295 <primary sortas="b-usb_id">usb_id</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="write_cd_rules">
301 <term><command>write_cd_rules</command></term>
302 <listitem>
303 <para>A script which generates Udev rules to provide stable names for
304 optical drives (see also <xref linkend="ch-scripts-symlinks"/>)</para>
305 <indexterm zone="ch-system-udev write_cd_rules">
306 <primary sortas="b-write_cd_rules">write_cd_rules</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="write_net_rules">
312 <term><command>write_net_rules</command></term>
313 <listitem>
314 <para>A script which generates rules to provide stable names for
315 network interfaces (see also <xref linkend="ch-scripts-network"/>)
316 </para>
317 <indexterm zone="ch-system-udev write_net_rules">
318 <primary sortas="b-write_net_rules">write_net_rules</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="libudev">
324 <term><filename class="libraryfile">libudev</filename></term>
325 <listitem>
326 <para>A library interface to udev device information</para>
327 <indexterm zone="ch-system-udev libudev">
328 <primary sortas="c-libudev">libudev</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="etc-udev">
334 <term><filename class="directory">/etc/udev</filename></term>
335 <listitem>
336 <para>Contains Udev configuration files,
337 device permissions, and rules for device naming</para>
338 <indexterm zone="ch-system-udev etc-udev">
339 <primary sortas="e-/etc/udev">/etc/udev</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 </variablelist>
345
346 </sect2>
347
348</sect1>
Note: See TracBrowser for help on using the repository browser.