Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81609 - some udev rules aren't working after upgrading to udev-051
Summary: some udev rules aren't working after upgrading to udev-051
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 05:01 UTC by Simon Cooper
Modified: 2005-02-17 10:11 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 Simon Cooper 2005-02-11 05:01:33 UTC
These rules don't work anymore, /dev/sd* is created instead of the device names below:

BUS="usb", SYSFS{manufacturer}="SMSC", SYSFS{product}="USB FDC GOLD-1.11", NAME="usbfloppy", GROUP="usb"
KERNEL="sd?", SYSFS{range}="16", SYSFS{size}="250880", NAME=""
KERNEL="sd?1", SYSFS{start}="32", SYSFS{size}="250848", NAME="usbstick2", GROUP="usb"
KERNEL="sd?", SYSFS{range}="16", SYSFS{size}="2880", NAME="usbstick1", GROUP="usb"
KERNEL="sd?", SYSFS{range}="16", SYSFS{size}="490234753", NAME=""
KERNEL="sd?1", SYSFS{start}="63", SYSFS{size}="490223412", NAME="usbdisk", GROUP="usb"

I've rechecked the sysfs numbers, and nothing has changed apart from the udev version and a kernel upgrade to 2.6.11-rc3-mm2 (but the sysfs tree is unchanged afaik)
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-11 11:49:14 UTC
What does running udevtest for this show:
  udevtest /sys/block/sd/sd1
Comment 2 Simon Cooper 2005-02-11 12:11:33 UTC
/sys/block/sd doenst exist

tachyon simon # udevtest /sys/block/sdb/sdb1
version 052
looking at '/block/sdb/sdb1'
opened class_dev->name='sdb1'
configured rule in '/etc/udev/rules.d/50-udev.rules[28]' applied, 'sdb1' becomes '%k'
creating device node '/dev/sdb1', major = '8', minor = '17', mode = '060660', uid = '0', gid = '6'

tachyon simon # ls /etc/udev/rules.d
50-udev.rules  55-slmodem.rules  60-usb.rules  70-perms.rules

the rules above are in 60-usb.rules
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-15 16:26:55 UTC
I'm just waiting for you to read what you posted so that you see what the
problem is...

Hint, it's not a udev issue, it's an issue what you named the file where you
put your new rule :)
Comment 4 Simon Cooper 2005-02-16 09:39:48 UTC
hmm, well then udev and gentoo env scripts do things the opposite way round (afaik) - the gentoo env-update looks through /etc/env.d and env variables in files with larger numbers overwrite earlier variable statements - the larger the number the greater the precendence it has, whereas in udev the smaller the file number the greater precedence it has in determining the node name - hence the confusion. Is this a feature or a bug?
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-17 10:11:43 UTC
It's just the way udev works, sorry, not a bug.