source: chapter08/eudev.xml@ 193913e

s6-init
Last change on this file since 193913e was 193913e, checked in by Thomas Trepl (Moody) <thomas@…>, 21 months ago

First commit to add S6 as init system (like systemd)

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[8a75933]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
[193913e]8<sect1 id="ch-system-eudev" role="wrap" revision="sysv,s6">
[8a75933]9 <?dbhtml filename="eudev.html"?>
10
11 <sect1info condition="script">
12 <productname>eudev</productname>
13 <productnumber>&eudev-version;</productnumber>
14 <address>&eudev-url;</address>
15 </sect1info>
16
17 <title>Eudev-&eudev-version;</title>
18
19 <indexterm zone="ch-system-eudev">
20 <primary sortas="a-Eudev">Eudev</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Eudev package contains programs for dynamic creation of device
[d672ab7]27 nodes.</para>
[8a75933]28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
[fb386e0]34 <seg>&eudev-fin-sbu;</seg>
35 <seg>&eudev-fin-du;</seg>
[8a75933]36 </seglistitem>
37 </segmentedlist>
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Eudev</title>
[de6905d]42<!--
[3aee2ac2]43 <para>First, fix a test script:</para>
[8a75933]44
[3aee2ac2]45<screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
[de6905d]46-->
[8da63ab]47<!--
[3e92f82]48 <para>Next, remove an unneeded line that causes a build failure:</para>
49
50<screen><userinput remap="pre">sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c</userinput></screen>
[8da63ab]51-->
[effe07a]52
53 <para>Prepare Eudev for compilation:</para>
[8a75933]54
[99dd957]55<screen><userinput remap="configure">./configure --prefix=/usr \
[9901d50d]56 --bindir=/usr/sbin \
[8a75933]57 --sysconfdir=/etc \
[54dfb280]58 --enable-manpages \
[76a706e]59 --disable-static</userinput></screen>
[53366411]60
[effe07a]61 <para>Compile the package:</para>
[8a75933]62
[76a706e]63<screen><userinput remap="make">make</userinput></screen>
[8a75933]64
[effe07a]65 <para>Create some directories now that are needed for tests, but
66 will also be used as a part of installation:</para>
[8a75933]67
[d7a9421]68<screen><userinput remap="test">mkdir -pv /usr/lib/udev/rules.d
[8a75933]69mkdir -pv /etc/udev/rules.d</userinput></screen>
70
[effe07a]71 <para>To test the results, issue:</para>
[8a75933]72
[76a706e]73<screen><userinput remap="test">make check</userinput></screen>
[8a75933]74
[1a96a4ed]75 <para>Install the package:</para>
[8a75933]76
[76a706e]77<screen><userinput remap="install">make install</userinput></screen>
[8a75933]78
[d672ab7]79 <para>Install some custom rules and support files useful in an LFS
[8aa7fde]80 environment:</para>
[111bb20]81
[bf7e2c6]82<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz
[8aa7fde]83make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
[111bb20]84
[8a75933]85 </sect2>
86
[1a96a4ed]87 <sect2 id="conf-eudev" role="configuration">
88 <title>Configuring Eudev</title>
89
90 <indexterm zone="conf-eudev">
91 <primary sortas="a-Eudev">Eudev</primary>
92 <secondary>configuring</secondary>
93 </indexterm>
94
95 <indexterm zone="conf-eudev">
96 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
97 </indexterm>
98
99 <para>Information about hardware devices is maintained in the
100 <filename class="directory">/etc/udev/hwdb.d</filename> and
[d7a9421]101 <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
[1a96a4ed]102 <application>Eudev</application> needs that information to be compiled
103 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
104 initial database:</para>
105
[76a706e]106<screen><userinput>udevadm hwdb --update</userinput></screen>
[1a96a4ed]107
108 <para>This command needs to be run each time the hardware information is
109 updated.</para>
110
111 </sect2>
112
[8a75933]113 <sect2 id="contents-eudev" role="content">
114 <title>Contents of Eudev</title>
115
116 <segmentedlist>
117 <segtitle>Installed programs</segtitle>
118 <segtitle>Installed libraries</segtitle>
119 <segtitle>Installed directories</segtitle>
120
121 <seglistitem>
[d7a9421]122 <seg><!-- These are in /usr/lib/udev and not to be called by the user:
[8a75933]123 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
124 scsi_id, v4l_id,--> udevadm and udevd</seg>
125
126 <seg>libudev.so</seg>
127
[d7a9421]128 <seg>/etc/udev, /usr/lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg>
[8a75933]129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
[193913e]136 <varlistentry id="udevadm" revision="sysv,s6">
[8a75933]137 <term><command>udevadm</command></term>
138 <listitem>
139 <para>Generic udev administration tool: controls the udevd daemon,
140 provides info from the Udev database, monitors uevents, waits for
141 uevents to finish, tests Udev configuration, and triggers uevents
142 for a given device</para>
143 <indexterm zone="ch-system-eudev udevadm">
144 <primary sortas="b-udevadm">udevadm</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="udevd">
150 <term><command>udevd</command></term>
151 <listitem>
152 <para>A daemon that listens for uevents on the netlink socket,
153 creates devices and runs the configured external programs in
154 response to these uevents</para>
155 <indexterm zone="ch-system-eudev udevd">
156 <primary sortas="b-udevd">udevd</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="libudev">
162 <term><filename class="libraryfile">libudev</filename></term>
163 <listitem>
164 <para>A library interface to udev device information</para>
165 <indexterm zone="ch-system-eudev libudev">
166 <primary sortas="c-libudev">libudev</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="etc-udev">
172 <term><filename class="directory">/etc/udev</filename></term>
173 <listitem>
174 <para>Contains Udev configuration files,
175 device permissions, and rules for device naming</para>
176 <indexterm zone="ch-system-eudev etc-udev">
177 <primary sortas="e-/etc/udev">/etc/udev</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 </variablelist>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.