source: chapter06/systemd.xml@ f9d6f78

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.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 f9d6f78 was f9d6f78, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Upgrade to systemd-196/lfs-udev-196

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

  • Property mode set to 100644
File size: 6.9 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 <note><para>This package is a little different from other packages. The
46 initial package that is extracted is
47 <filename>systemd-&systemd-version;.tar.xz</filename> even though the
48 application we are installing is udev. After changing to the
49 systemd directory, follow the instructions below.</para></note>
50
51 <para>The udev-lfs tarball contains LFS-specific files used to build
52 Udev. Unpack it into the systemd source directory:</para>
53
54<screen><userinput remap="pre">tar -xvf ../&udev-lfs;.tar.bz2</userinput></screen>
55
56 <para>Fix a typo in the <userinput>udevadm</userinput> usage output:</para>
57
58<screen><userinput remap="pre">sed -i -e 's/create/update/' src/udev/udevadm-hwdb.c</userinput></screen>
59
60 <para>Compile the package:</para>
61
62<screen><userinput remap="make">make -f udev-lfs-&systemd-version;/Makefile.lfs</userinput></screen>
63
64 <para>Install the package:</para>
65
66<screen><userinput remap="install">make -f udev-lfs-&systemd-version;/Makefile.lfs install</userinput></screen>
67
68 <para>Finally set up the persistent network udev rules. This task will be
69 explained in detail in <xref linkend='stable-net-names'/>. Note that the
70 <filename class='directory'>/sys</filename> and <filename
71 class='directory'>/proc</filename> filesystems must be mounted in the
72 chroot environment as explained at the beginning of this chapter for the
73 following script to work.</para>
74
75<screen><userinput remap="install">bash udev-lfs-&systemd-version;/init-net-rules.sh</userinput></screen>
76 </sect2>
77
78 <sect2 id="contents-udev" role="content">
79 <title>Contents of Udev</title>
80
81 <segmentedlist>
82 <segtitle>Installed programs</segtitle>
83 <segtitle>Installed libraries</segtitle>
84 <segtitle>Installed directories</segtitle>
85
86 <seglistitem>
87 <seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe,
88 scsi_id, v4l_id, udevadm, and udevd</seg>
89
90 <seg>libudev.so</seg>
91
92 <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg>
93 </seglistitem>
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="ata_id">
102 <term><command>ata_id</command></term>
103 <listitem>
104 <para>Provides Udev with a unique string and
105 additional information (uuid, label) for an ATA drive</para>
106 <indexterm zone="ch-system-udev ata_id">
107 <primary sortas="b-ata_id">ata_id</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="cdrom_id">
113 <term><command>cdrom_id</command></term>
114 <listitem>
115 <para>Provides Udev with the capabilities of a
116 CD-ROM or DVD-ROM drive</para>
117 <indexterm zone="ch-system-udev cdrom_id">
118 <primary sortas="b-cdrom_id">cdrom_id</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="collect">
124 <term><command>collect</command></term>
125 <listitem>
126 <para>Given an ID for the current uevent and a list of
127 IDs (for all target uevents), registers the current ID
128 and indicates whether all target IDs have been registered</para>
129 <indexterm zone="ch-system-udev collect">
130 <primary sortas="b-collect">collect</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="scsi_id">
136 <term><command>scsi_id</command></term>
137 <listitem>
138 <para>Provides Udev with a unique SCSI identifier
139 based on the data returned from sending a SCSI INQUIRY command to
140 the specified device</para>
141 <indexterm zone="ch-system-udev scsi_id">
142 <primary sortas="b-scsi_id">scsi_id</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="udevadm">
148 <term><command>udevadm</command></term>
149 <listitem>
150 <para>Generic udev administration tool: controls the udevd daemon,
151 provides info from the Udev database, monitors uevents, waits for
152 uevents to finish, tests Udev configuration, and triggers uevents
153 for a given device</para>
154 <indexterm zone="ch-system-udev udevadm">
155 <primary sortas="b-udevadm">udevadm</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="udevd">
161 <term><command>udevd</command></term>
162 <listitem>
163 <para>A daemon that listens for uevents on the netlink socket,
164 creates devices and runs the configured external programs in
165 response to these uevents</para>
166 <indexterm zone="ch-system-udev udevd">
167 <primary sortas="b-udevd">udevd</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="libudev">
173 <term><filename class="libraryfile">libudev</filename></term>
174 <listitem>
175 <para>A library interface to udev device information</para>
176 <indexterm zone="ch-system-udev libudev">
177 <primary sortas="c-libudev">libudev</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="etc-udev">
183 <term><filename class="directory">/etc/udev</filename></term>
184 <listitem>
185 <para>Contains Udev configuration files,
186 device permissions, and rules for device naming</para>
187 <indexterm zone="ch-system-udev etc-udev">
188 <primary sortas="e-/etc/udev">/etc/udev</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 </variablelist>
194
195 </sect2>
196
197</sect1>
Note: See TracBrowser for help on using the repository browser.