Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#2925 - udev 060-3 not processing custom rules

Attached to Project: Arch Linux
Opened by Tom Killian (tomk) - Wednesday, 06 July 2005, 11:54 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Since upgrading to udev 060-3, my custom rules are not working. They work perfectly under 058-4, to which I have reverted for the moment.

My custom rules are defined in /etc/udev/rules.d/local.rules, and look like this:

# /dev/cdrom symlink for xfmedia
KERNEL="hdc", SYMLINK="cdrom"

# /dev/floppy symlink
KERNEL="fd0", SYMLINK="floppy"

# Mustek DV2032 Camera
BUS="usb", SYSFS{idProduct}="c441", KERNEL="sd?1", NAME="%k", SYMLINK="camera"

# Blaze USB Drive
BUS="usb", SYSFS{idProduct}=="8813", KERNEL="sd*", NAME="%k", SYMLINK="blaze"

# Sony Clie
BUS="usb", SYSFS{product}=="Sony PEG Mass Storage", KERNEL="sd*", NAME="%k", SYMLINK="clie"
This task depends upon

Closed by  Judd Vinet (judd)
Wednesday, 06 July 2005, 19:45 GMT
Reason for closing:  Fixed
Comment by Tom Killian (tomk) - Wednesday, 06 July 2005, 15:01 GMT
Please note tom.deb's workaround for this problem here:

http://bbs.archlinux.org/viewtopic.php?t=13553

Hopefully, it is relevant.
Comment by Judd Vinet (judd) - Wednesday, 06 July 2005, 17:12 GMT Comment by Judd Vinet (judd) - Wednesday, 06 July 2005, 17:41 GMT
As of udev 060, if you use a SYMLINK= in your custom rule, you should use '+=' as the operator, instead of '='

example:

BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", SYMLINK+="%c{1} %c{2}"

See the udev(8) manpage for more info.
Comment by Tom Killian (tomk) - Wednesday, 06 July 2005, 19:41 GMT
Thanks Judd. I'm looking at the raw man page from the source tarball, and either I'm blind, or they haven't updated it - it still has this as an example:

BUS=="usb", SYSFS{model}=="XV3", NAME=="video%n", SYMLINK="webcam%n"

However, I can see this in the tarball's udev.rules.examples:

BUS=="ide", KERNEL=="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom", NAME="%k", SYMLINK+="cdrom"

So what I'll do is change my SYMLINKs to += and run 060-3 again - from your second comment, I expect that to work. If it doesn't, I'll try your 060-4.
Comment by Judd Vinet (judd) - Wednesday, 06 July 2005, 19:45 GMT
Hi Tom,

Actually, upgrade to the latest in Current: 060-5. That package has the required changes in the default udev.rules file.

Loading...