Changeset f3317d4 for chapter07/udev.xml


Ignore:
Timestamp:
02/15/2013 09:14:37 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
b588d62
Parents:
4a4e017
Message:

Move Chapter 7 in place for Systemd.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/udev.xml

    r4a4e017 rf3317d4  
    120120      whatever <systemitem class="filesystem">devtmpfs</systemitem> used
    121121      initially.</para> </sect3>
    122 
    123     <sect3>
    124       <title>Udev Bootscripts</title>
    125 
    126       <para>The first LFS bootscript,
    127       <filename>/etc/init.d/mountvirtfs</filename> will copy any devices
    128       located in <filename class="directory">/lib/udev/devices</filename> to
    129       <filename class="directory">/dev</filename>. This is necessary because
    130       some devices, directories, and symlinks are needed before the dynamic
    131       device handling processes are available during the early stages of
    132       booting a system, or are required by <command>udevd</command> itself.
    133       Creating static device nodes in <filename
    134       class="directory">/lib/udev/devices</filename> also provides an easy
    135       workaround for devices that are not supported by the dynamic device
    136       handling infrastructure.</para>
    137 
    138       <para>The <filename>/etc/rc.d/init.d/udev</filename> initscript starts
    139       <command>udevd</command>, triggers any "coldplug" devices that have
    140       already been created by the kernel and waits for any rules to complete.
    141       The script also unsets the uevent handler from the default of
    142       <filename>/sbin/hotplug </filename>.  This is done because the kernel no
    143       longer needs to call out to an external binary.  Instead
    144       <command>udevd</command> will listen on a netlink socket for uevents that
    145       the kernel raises.</para>
    146 
    147       <para>The <command>/etc/rc.d/init.d/udev_retry</command> initscript takes
    148       care of re-triggering events for subsystems whose rules may rely on
    149       filesystems that are not mounted until the <command>mountfs</command>
    150       script is run (in particular, <filename class="directory">/usr</filename>
    151       and <filename class="directory">/var</filename> may cause this).  This
    152       script runs after the <command>mountfs</command> script, so those rules
    153       (if re-triggered) should succeed the second time around.  It is
    154       configured from the <filename>/etc/sysconfig/udev_retry</filename> file;
    155       any words in this file other than comments are considered subsystem names
    156       to trigger at retry time.  To find the subsystem of a device, use
    157       <command>udevadm info --attribute-walk &lt;device&gt;</command> where
    158       &lt;device&gt; is a an absolure path in /dev or /sys such as /dev/sr0 or
    159       /sys/class/rtc.</para>
    160 
    161     </sect3>
    162122
    163123    <sect3>
Note: See TracChangeset for help on using the changeset viewer.