source: chapter06/systemd.xml@ d7f2eb0

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

Add additional explanations for time zone
installation, udev, and network configuration.

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

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