Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: devfs is dead, let's move on
Date: Thu, 07 Jul 2005 19:50:27
Message-Id: pan.2005.07.07.19.44.05.481038@cox.net
In Reply to: Re: [gentoo-dev] devfs is dead, let's move on by Martin Schlemmer
1 Martin Schlemmer posted <1120744545.6560.18.camel@×××××.lan>, excerpted
2 below, on Thu, 07 Jul 2005 15:55:45 +0200:
3
4 > Lastly on an unrelated note ... I have a rule:
5 >
6 > -----
7 > # cat /etc/udev/rules.d/40-dm.rules
8 > KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="mapper/%c", SYMLINK="%c"
9 > -----
10 >
11 > And in theory it should be the last rule to set the name ... however the
12 > default one in 50-udev.rules overrides it, and I have to add
13 > OPTIONS="last_rule"
14
15 Why would a rule applied in 40-x.rules be expected to stick when
16 50-x.rules runs after it and has a conflicting rule?
17
18 Change the 40- to 60- and it should work. Of course, you are already
19 using another alternative, the last_rule option.
20
21 There's a third option that /might/ work, as well, according to the
22 documentation (which is fresh in my mind due to bug 98175, udev-061's
23 user/group mixups, today). You could try replacing the NAME= with NAME:=.
24 According to the documentation, the := assignment cannot be overwritten,
25 so that should make your name stick, with newer udevs, anyway. I think
26 that functionality is rather new, tho, and may not be in stable versions.
27
28 --
29 Duncan - List replies preferred. No HTML msgs.
30 "Every nonfree program has a lord, a master --
31 and if you use the program, he is your master." Richard Stallman in
32 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
33
34
35 --
36 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: devfs is dead, let's move on Martin Schlemmer <azarah@g.o>