Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73208 - udev: wrong rules prevent cdsymlinks.sh working
Summary: udev: wrong rules prevent cdsymlinks.sh working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 03:20 UTC by nobody
Modified: 2004-12-03 10:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobody 2004-12-03 03:20:39 UTC
in /etc/udev/50-udev.rules:

# cdrom symlinks and other good cdrom naming
BUS="ide",  KERNEL="hd[a-z]",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="sr[a-z]",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"

as state in cdsymlinks.sh this should be:
# Usage:
# BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
# BUS="scsi", KERNEL="sr[0-9]*", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
# BUS="scsi", KERNEL="scd[0-9]*", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"

in my system, scsi cdrom are named by kernel as "sr0", "sr1"... and not "sra", "srb"...



Reproducible: Always
Steps to Reproduce:
1. nano /etc/udev/cdsymlinks.conf and activate OUTPUT=...
2. using udev with scsi cdrom devices
3.

Actual Results:  
scsi cdroms symlinks:
sr0, sr1...

Expected Results:  
scsi cdroms sysmlinks:
cdrom, cdrom1...

and in log file:

Dec  3 12:05:50 [kernel] sr0: scsi3-mmc drive: 16x/40x cd/rw xa/form2 cdda tray
Dec  3 12:05:50 [udev] configured rule in '/etc/udev/rules.d/50-udev.rules' at
line 17 applied, added symlink '%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}'
Dec  3 12:05:50 [udev] creating device node '/dev/sr0'
...
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-12-03 10:52:09 UTC
Good catch, will be fixed in next release.