Martin Schlemmer posted <[EMAIL PROTECTED]>, excerpted below, on Thu, 07 Jul 2005 15:55:45 +0200:
> Lastly on an unrelated note ... I have a rule: > > ----- > # cat /etc/udev/rules.d/40-dm.rules > KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="mapper/%c", > SYMLINK="%c" > ----- > > And in theory it should be the last rule to set the name ... however the > default one in 50-udev.rules overrides it, and I have to add > OPTIONS="last_rule" Why would a rule applied in 40-x.rules be expected to stick when 50-x.rules runs after it and has a conflicting rule? Change the 40- to 60- and it should work. Of course, you are already using another alternative, the last_rule option. There's a third option that /might/ work, as well, according to the documentation (which is fresh in my mind due to bug 98175, udev-061's user/group mixups, today). You could try replacing the NAME= with NAME:=. According to the documentation, the := assignment cannot be overwritten, so that should make your name stick, with newer udevs, anyway. I think that functionality is rather new, tho, and may not be in stable versions. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman in http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html -- gentoo-dev@gentoo.org mailing list