1
0

systemd.xml 6.4 KB

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