Ignore:
Timestamp:
04/23/2014 08:53:49 PM (10 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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.6, 7.7, 7.8, 7.9, 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
Children:
61d3147
Parents:
e040ad1
Message:

Update to man-pages-3.65.
Text changes in Chapter 7.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/usage.xml

    re040ad1 r976040f  
    208208  </sect2>
    209209
     210  <sect2>
     211    <title>Udev Bootscripts</title>
     212
     213      <para>The first LFS bootscript,
     214      <filename>/etc/init.d/mountvirtfs</filename> will copy any devices
     215      located in <filename class="directory">/lib/udev/devices</filename> to
     216      <filename class="directory">/dev</filename>. This is necessary because
     217      some devices, directories, and symlinks are needed before the dynamic
     218      device handling processes are available during the early stages of
     219      booting a system, or are required by <command>udevd</command> itself.
     220      Creating static device nodes in <filename
     221      class="directory">/lib/udev/devices</filename> also provides an easy
     222      workaround for devices that are not supported by the dynamic device
     223      handling infrastructure.</para>
     224
     225      <para>The <filename>/etc/rc.d/init.d/udev</filename> initscript starts
     226      <command>udevd</command>, triggers any "coldplug" devices that have
     227      already been created by the kernel and waits for any rules to complete.
     228      The script also unsets the uevent handler from the default of
     229      <filename>/sbin/hotplug </filename>.  This is done because the kernel no
     230      longer needs to call out to an external binary.  Instead
     231      <command>udevd</command> will listen on a netlink socket for uevents that
     232      the kernel raises.</para>
     233
     234      <para>The <command>/etc/rc.d/init.d/udev_retry</command> initscript takes
     235      care of re-triggering events for subsystems whose rules may rely on
     236      filesystems that are not mounted until the <command>mountfs</command>
     237      script is run (in particular, <filename class="directory">/usr</filename>
     238      and <filename class="directory">/var</filename> may cause this).  This
     239      script runs after the <command>mountfs</command> script, so those rules
     240      (if re-triggered) should succeed the second time around.  It is
     241      configured from the <filename>/etc/sysconfig/udev_retry</filename> file;
     242      any words in this file other than comments are considered subsystem names
     243      to trigger at retry time.  To find the subsystem of a device, use
     244      <command>udevadm info --attribute-walk &lt;device&gt;</command> where
     245      &lt;device&gt; is an absolute path in /dev or /sys such as /dev/sr0 or
     246      /sys/class/rtc.</para>
     247
     248    <sect3>
     249      <title>Module Loading</title>
     250
     251      <para>Device drivers compiled as modules may have aliases built into them.
     252      Aliases are visible in the output of the <command>modinfo</command>
     253      program and are usually related to the bus-specific identifiers of devices
     254      supported by a module. For example, the <emphasis>snd-fm801</emphasis>
     255      driver supports PCI devices with vendor ID 0x1319 and device ID 0x0801,
     256      and has an alias of <quote>pci:v00001319d00000801sv*sd*bc04sc01i*</quote>.
     257      For most devices, the bus driver exports the alias of the driver that
     258      would handle the device via <systemitem
     259      class="filesystem">sysfs</systemitem>. E.g., the
     260      <filename>/sys/bus/pci/devices/0000:00:0d.0/modalias</filename> file
     261      might contain the string
     262      <quote>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</quote>.
     263      The default rules provided with Udev will cause <command>udevd</command>
     264      to call out to <command>/sbin/modprobe</command> with the contents of the
     265      <envar>MODALIAS</envar> uevent environment variable (which should be the
     266      same as the contents of the <filename>modalias</filename> file in sysfs),
     267      thus loading all modules whose aliases match this string after wildcard
     268      expansion.</para>
     269
     270      <para>In this example, this means that, in addition to
     271      <emphasis>snd-fm801</emphasis>, the obsolete (and unwanted)
     272      <emphasis>forte</emphasis> driver will be loaded if it is
     273      available. See below for ways in which the loading of unwanted drivers can
     274      be prevented.</para>
     275
     276      <para>The kernel itself is also able to load modules for network
     277      protocols, filesystems and NLS support on demand.</para>
     278
     279    </sect3>
     280
     281    <sect3>
     282      <title>Handling Hotpluggable/Dynamic Devices</title>
     283
     284      <para>When you plug in a device, such as a Universal Serial Bus (USB) MP3
     285      player, the kernel recognizes that the device is now connected and
     286      generates a uevent. This uevent is then handled by
     287      <command>udevd</command> as described above.</para>
     288
     289    </sect3>
     290  </sect2>
     291
    210292  <sect2 id="ch-scripts-clock">
    211293    <title>Configuring the System Clock</title>
    212294
    213     <sect3 id="ch-scripts-setclock">
    214     <title>System V Clock Configuration</title>
    215 
    216     <indexterm zone="ch-scripts-setclock">
    217       <primary sortas="d-setclock">setclock</primary>
     295    <indexterm zone="ch-scripts-clock">
     296      <primary sortas="d-scripts-setclock">setclock</primary>
    218297    <secondary>configuring</secondary></indexterm>
    219298
     
    269348    in the <filename>/etc/sysconfig/rc.site</filename> file.</para></note>
    270349
    271      </sect3>
    272350  </sect2>
    273351
Note: See TracChangeset for help on using the changeset viewer.