From 8536c02ded36cddc06df1f8b3fbb6d2889f2e544 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Mon, 16 Apr 2007 19:34:38 +0000 Subject: Upgrade to Udev-108. Fixes #1976. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8064 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/symlinks.xml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'chapter07') diff --git a/chapter07/symlinks.xml b/chapter07/symlinks.xml index c842427d1..05a3a053f 100644 --- a/chapter07/symlinks.xml +++ b/chapter07/symlinks.xml @@ -23,12 +23,13 @@ for you, depending on the capabilities of each device, but you need to decide which of two modes of operation you wish to have the script use. - First, the script can operate in by-path mode, where - the rules it creates depend on the physical path to the CD or DVD device. - Second, it can operate in by-id mode, where the rules it - creates depend on identification strings stored in the CD or DVD device - itself. The path is determined by Udev's path_id script, - and the identification strings are read from the hardware by its + First, the script can operate in by-path mode (used by + default for USB and FireWire devices), where the rules it creates depend on + the physical path to the CD or DVD device. Second, it can operate in + by-id mode (default for IDE and SCSI devices), where the + rules it creates depend on identification strings stored in the CD or DVD + device itself. The path is determined by Udev's path_id + script, and the identification strings are read from the hardware by its ata_id or scsi_id programs, depending on which type of device you have. @@ -69,13 +70,13 @@ is not empty, otherwise it will use a combination of ID_MODEL and ID_REVISION. The by-path mode will use the ID_PATH value. - If you choose the by-path mode, then the rules files - installed by default with Udev will work. If you choose the by-id - mode, then you will have to modify the + If the default mode is not suitable for your situation, then the + following modification can be made to the /etc/udev/rules.d/75-cd-aliases-generator.rules file, - as follows: + as follows (where mode is one of + by-id or by-path): -sed -i -e 's/write_cd_aliases/& by-id/' \ +sed -i -e 's/write_cd_aliases/& mode/' \ /etc/udev/rules.d/75-cd-aliases-generator.rules Note that it is not necessary to create the rules files or symlinks -- cgit v1.2.3-54-g00ecf