Ticket #1976: udev.patch

File udev.patch, 5.5 KB (added by Matthew Burgess, 18 years ago)
  • chapter01/changelog.xml

    old new  
    4040      <para>2007-04-09</para>
    4141      <itemizedlist>
    4242        <listitem>
     43          <para>[matthew] - Upgrade to Udev-108. Fixes
     44          <ulink url="&lfs-ticket-root;1976">#1976</ulink>.</para>
     45        </listitem>
     46        <listitem>
    4347          <para>[matthew] - Upgrade to Man-pages-2.44. Fixes
    4448          <ulink url="&lfs-ticket-root;1987">#1987</ulink>.</para>
    4549        </listitem>
  • chapter06/udev.xml

    old new  
    5353
    5454    <para>Compile the package:</para>
    5555
    56 <screen><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \
    57     extras/firmware extras/floppy extras/path_id \
    58     extras/rule_generator extras/scsi_id extras/usb_id \
    59     extras/volume_id"</userinput></screen>
     56<screen><userinput>make EXTRAS="`echo extras/*/`"</userinput></screen>
    6057
    6158    <variablelist>
    6259      <title>The meaning of the make option:</title>
     
    6461      <varlistentry>
    6562        <term><parameter>EXTRAS=...</parameter></term>
    6663        <listitem>
    67           <para>This builds several helper binaries that can aid in writing custom
     64          <para>This builds the helper binaries that can aid in writing custom
    6865          Udev rules.</para>
    6966        </listitem>
    7067      </varlistentry>
     
    7976
    8077    <para>Install the package:</para>
    8178
    82 <screen><userinput>make DESTDIR=/ \
    83     EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \
    84             extras/firmware extras/floppy extras/path_id \
    85             extras/rule_generator extras/scsi_id \
    86             extras/usb_id extras/volume_id" install</userinput></screen>
     79<screen><userinput>make DESTDIR=/ EXTRAS="`echo extras/*/`"</userinput></screen>
    8780
    8881    <variablelist>
    8982      <title>The meaning of the make parameter:</title>
  • chapter07/symlinks.xml

    old new  
    2323    for you, depending on the capabilities of each device, but you need to
    2424    decide which of two modes of operation you wish to have the script use.</para>
    2525
    26     <para>First, the script can operate in <quote>by-path</quote> mode, where
    27     the rules it creates depend on the physical path to the CD or DVD device.
    28     Second, it can operate in <quote>by-id</quote> mode, where the rules it
    29     creates depend on identification strings stored in the CD or DVD device
    30     itself. The path is determined by Udev's <command>path_id</command> script,
    31     and the identification strings are read from the hardware by its
     26    <para>First, the script can operate in <quote>by-path</quote> mode (used by
     27    default for USB and FireWire devices), where the rules it creates depend on
     28    the physical path to the CD or DVD device. Second, it can operate in
     29    <quote>by-id</quote> mode (default for IDE and SCSI devices), where the
     30    rules it creates depend on identification strings stored in the CD or DVD
     31    device itself. The path is determined by Udev's <command>path_id</command>
     32    script, and the identification strings are read from the hardware by its
    3233    <command>ata_id</command> or <command>scsi_id</command> programs, depending
    3334    on which type of device you have.</para>
    3435
     
    6970    is not empty, otherwise it will use a combination of ID_MODEL and
    7071    ID_REVISION. The <quote>by-path</quote> mode will use the ID_PATH value.</para>
    7172
    72     <para>If you choose the <quote>by-path</quote> mode, then the rules files
    73     installed by default with Udev will work. If you choose the <quote>by-id</quote>
    74     mode, then you will have to modify the
     73    <para>If the default mode is not suitable for your situation, then the
     74    following modification can be made to the
    7575    <filename>/etc/udev/rules.d/75-cd-aliases-generator.rules</filename> file,
    76     as follows:</para>
     76    as follows (where <replaceable>mode</replaceable> is one of
     77    &quot;by-id&quot; or &quot;by-path&quot;):</para>
    7778
    78 <screen><userinput>sed -i -e 's/write_cd_aliases/&amp; by-id/' \
     79<screen><userinput>sed -i -e 's/write_cd_aliases/&amp; <replaceable>mode</replaceable>/' \
    7980    /etc/udev/rules.d/75-cd-aliases-generator.rules</userinput></screen>
    8081
    8182    <para>Note that it is not necessary to create the rules files or symlinks
  • packages.ent

    old new  
    482482<!ENTITY texinfo-ch6-du "16.6 MB">
    483483<!ENTITY texinfo-ch6-sbu "0.2 SBU">
    484484
    485 <!ENTITY udev-version "106">
    486 <!ENTITY udev-size "184 KB">
     485<!ENTITY udev-version "108">
     486<!ENTITY udev-size "183 KB">
    487487<!ENTITY udev-url "&kernel;linux/utils/kernel/hotplug/udev-&udev-version;.tar.bz2">
    488 <!ENTITY udev-md5 "320ccd2d0f4540d10e021bafa14f8985">
     488<!ENTITY udev-md5 "67935abde67b23e7c6e86e0be77c5e4b">
    489489<!ENTITY udev-home "&kernel;linux/utils/kernel/hotplug/udev.html">
    490490<!ENTITY udev-ch6-du "5.8 MB">
    491491<!ENTITY udev-ch6-sbu "0.1 SBU">