From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kay Sievers" Date: Wed, 12 Nov 2008 20:31:54 +0000 Subject: Re: Some rules do not work in udev 131 and 132 Message-Id: List-Id: References: <20081112210052.6e7d8bb8@amilo> In-Reply-To: <20081112210052.6e7d8bb8@amilo> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Nov 12, 2008 at 20:00, Mikhail Kolesnik 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