Ticket #1976: udev.patch
File udev.patch, 5.5 KB (added by , 18 years ago) |
---|
-
chapter01/changelog.xml
old new 40 40 <para>2007-04-09</para> 41 41 <itemizedlist> 42 42 <listitem> 43 <para>[matthew] - Upgrade to Udev-108. Fixes 44 <ulink url="&lfs-ticket-root;1976">#1976</ulink>.</para> 45 </listitem> 46 <listitem> 43 47 <para>[matthew] - Upgrade to Man-pages-2.44. Fixes 44 48 <ulink url="&lfs-ticket-root;1987">#1987</ulink>.</para> 45 49 </listitem> -
chapter06/udev.xml
old new 53 53 54 54 <para>Compile the package:</para> 55 55 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> 60 57 61 58 <variablelist> 62 59 <title>The meaning of the make option:</title> … … 64 61 <varlistentry> 65 62 <term><parameter>EXTRAS=...</parameter></term> 66 63 <listitem> 67 <para>This builds severalhelper binaries that can aid in writing custom64 <para>This builds the helper binaries that can aid in writing custom 68 65 Udev rules.</para> 69 66 </listitem> 70 67 </varlistentry> … … 79 76 80 77 <para>Install the package:</para> 81 78 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> 87 80 88 81 <variablelist> 89 82 <title>The meaning of the make parameter:</title> -
chapter07/symlinks.xml
old new 23 23 for you, depending on the capabilities of each device, but you need to 24 24 decide which of two modes of operation you wish to have the script use.</para> 25 25 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 32 33 <command>ata_id</command> or <command>scsi_id</command> programs, depending 33 34 on which type of device you have.</para> 34 35 … … 69 70 is not empty, otherwise it will use a combination of ID_MODEL and 70 71 ID_REVISION. The <quote>by-path</quote> mode will use the ID_PATH value.</para> 71 72 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 75 75 <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 "by-id" or "by-path"):</para> 77 78 78 <screen><userinput>sed -i -e 's/write_cd_aliases/& by-id/' \79 <screen><userinput>sed -i -e 's/write_cd_aliases/& <replaceable>mode</replaceable>/' \ 79 80 /etc/udev/rules.d/75-cd-aliases-generator.rules</userinput></screen> 80 81 81 82 <para>Note that it is not necessary to create the rules files or symlinks -
packages.ent
old new 482 482 <!ENTITY texinfo-ch6-du "16.6 MB"> 483 483 <!ENTITY texinfo-ch6-sbu "0.2 SBU"> 484 484 485 <!ENTITY udev-version "10 6">486 <!ENTITY udev-size "18 4KB">485 <!ENTITY udev-version "108"> 486 <!ENTITY udev-size "183 KB"> 487 487 <!ENTITY udev-url "&kernel;linux/utils/kernel/hotplug/udev-&udev-version;.tar.bz2"> 488 <!ENTITY udev-md5 " 320ccd2d0f4540d10e021bafa14f8985">488 <!ENTITY udev-md5 "67935abde67b23e7c6e86e0be77c5e4b"> 489 489 <!ENTITY udev-home "&kernel;linux/utils/kernel/hotplug/udev.html"> 490 490 <!ENTITY udev-ch6-du "5.8 MB"> 491 491 <!ENTITY udev-ch6-sbu "0.1 SBU">