source: chapter06/systemd.xml@ ce5ebe1

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since ce5ebe1 was ce5ebe1, checked in by Matthew Burgess <matthew@…>, 11 years ago

Remove trailing whitespace from all files.

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

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