Re: Some rules do not work in udev 131 and 132

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 12, 2008 at 20:00, Mikhail Kolesnik <mike@xxxxxxxxxxxxxx> wrote:
> udev was built from sources with no patching or very special rulesets
> installed. After a simple update from 130 to 131 some of my custom rules
> stopped working. And I can't find information about syntax change in
> git log.
>
> In the example below the first rule creates a symlink, but the second
> one creates none. It works with 130 but does not work on 131 and 132.
> The same results for another device (and partitions are there
> untouched).
>
> BUS=="usb", ATTRS{serial}=="A500000000025423", KERNEL=="sd?", NAME="%k", SYMLINK+="usbflash", GROUP="cdrom"
> BUS=="usb", ATTRS{serial}=="A500000000025423", KERNEL=="sd?[1-3]", NAME="%k", SYMLINK+="usbflash%n", GROUP="cdrom"

These rules seem to work fine here. I just replaced the serial number:
  ls -l /dev/usbflash*
  lrwxrwxrwx 1 root root 3 Nov 12 21:21 /dev/usbflash -> sdb
  lrwxrwxrwx 1 root root 4 Nov 12 21:21 /dev/usbflash1 -> sdb1

What does (replace sdb with the correct name):
  udevadm test /class/block/sdb
  udevadm test /class/block/sdb1
print?

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux