systemd.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. <sect1 id="ch-system-udev" role="wrap">
  8. <?dbhtml filename="udev.html"?>
  9. <sect1info condition="script">
  10. <productname>udev</productname>
  11. <productnumber>&systemd-version;</productnumber>
  12. <address>&systemd-url;</address>
  13. </sect1info>
  14. <title>Udev-&systemd-version; (Extracted from systemd-&systemd-version;)</title>
  15. <indexterm zone="ch-system-udev">
  16. <primary sortas="a-Udev">Udev</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Udev package contains programs for dynamic creation of device
  21. nodes. The development of udev has been merged with systemd, but
  22. most of systemd is incompatible with LFS. Here we build and install just
  23. the needed udev files.</para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&systemd-ch6-sbu;</seg>
  29. <seg>&systemd-ch6-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Udev</title>
  35. <note><para>This package is a little different from other packages. The
  36. initial package that is extracted is
  37. <filename>systemd-&systemd-version;.tar.xz</filename> even though the
  38. application we are installing is udev. After changing to the
  39. systemd directory, follow the instructions below.</para></note>
  40. <para>The udev-lfs tarball contains LFS-specific files used to build
  41. Udev. Unpack it into the systemd source directory:</para>
  42. <screen><userinput remap="pre">tar -xvf ../&udev-lfs;.tar.bz2</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make -f udev-lfs-&systemd-version;/Makefile.lfs</userinput></screen>
  45. <para>Install the package:</para>
  46. <screen><userinput remap="install">make -f udev-lfs-&systemd-version;/Makefile.lfs install</userinput></screen>
  47. <para>Finally set up the persistent network udev rules. This task will be
  48. explained in detail in <xref linkend='stable-net-names'/>. Note that the
  49. <filename class='directory'>/sys</filename> and <filename
  50. class='directory'>/proc</filename> filesystems must be mounted in the
  51. chroot environment as explained at the beginning of this chapter for the
  52. following script to work.</para>
  53. <screen><userinput remap="install">bash udev-lfs-&systemd-version;/init-net-rules.sh</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-udev" role="content">
  56. <title>Contents of Udev</title>
  57. <segmentedlist>
  58. <segtitle>Installed programs</segtitle>
  59. <segtitle>Installed libraries</segtitle>
  60. <segtitle>Installed directories</segtitle>
  61. <seglistitem>
  62. <seg>accelerometer, ata_id, cdrom_id, collect, mtd_probe,
  63. scsi_id, v4l_id, udevadm, and udevd</seg>
  64. <seg>libudev.so</seg>
  65. <seg>/etc/udev, /lib/udev, /lib/firmware, /usr/share/doc/udev</seg>
  66. </seglistitem>
  67. </segmentedlist>
  68. <variablelist>
  69. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  70. <?dbfo list-presentation="list"?>
  71. <?dbhtml list-presentation="table"?>
  72. <varlistentry id="ata_id">
  73. <term><command>ata_id</command></term>
  74. <listitem>
  75. <para>Provides Udev with a unique string and
  76. additional information (uuid, label) for an ATA drive</para>
  77. <indexterm zone="ch-system-udev ata_id">
  78. <primary sortas="b-ata_id">ata_id</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="cdrom_id">
  83. <term><command>cdrom_id</command></term>
  84. <listitem>
  85. <para>Provides Udev with the capabilities of a
  86. CD-ROM or DVD-ROM drive</para>
  87. <indexterm zone="ch-system-udev cdrom_id">
  88. <primary sortas="b-cdrom_id">cdrom_id</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="collect">
  93. <term><command>collect</command></term>
  94. <listitem>
  95. <para>Given an ID for the current uevent and a list of
  96. IDs (for all target uevents), registers the current ID
  97. and indicates whether all target IDs have been registered</para>
  98. <indexterm zone="ch-system-udev collect">
  99. <primary sortas="b-collect">collect</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="scsi_id">
  104. <term><command>scsi_id</command></term>
  105. <listitem>
  106. <para>Provides Udev with a unique SCSI identifier
  107. based on the data returned from sending a SCSI INQUIRY command to
  108. the specified device</para>
  109. <indexterm zone="ch-system-udev scsi_id">
  110. <primary sortas="b-scsi_id">scsi_id</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="udevadm">
  115. <term><command>udevadm</command></term>
  116. <listitem>
  117. <para>Generic udev administration tool: controls the udevd daemon,
  118. provides info from the Udev database, monitors uevents, waits for
  119. uevents to finish, tests Udev configuration, and triggers uevents
  120. for a given device</para>
  121. <indexterm zone="ch-system-udev udevadm">
  122. <primary sortas="b-udevadm">udevadm</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="udevd">
  127. <term><command>udevd</command></term>
  128. <listitem>
  129. <para>A daemon that listens for uevents on the netlink socket,
  130. creates devices and runs the configured external programs in
  131. response to these uevents</para>
  132. <indexterm zone="ch-system-udev udevd">
  133. <primary sortas="b-udevd">udevd</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="libudev">
  138. <term><filename class="libraryfile">libudev</filename></term>
  139. <listitem>
  140. <para>A library interface to udev device information</para>
  141. <indexterm zone="ch-system-udev libudev">
  142. <primary sortas="c-libudev">libudev</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="etc-udev">
  147. <term><filename class="directory">/etc/udev</filename></term>
  148. <listitem>
  149. <para>Contains Udev configuration files,
  150. device permissions, and rules for device naming</para>
  151. <indexterm zone="ch-system-udev etc-udev">
  152. <primary sortas="e-/etc/udev">/etc/udev</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. </variablelist>
  157. </sect2>
  158. </sect1>