1 |
On Fri, Jan 11, 2013 at 3:39 PM, Sascha Cunz <sascha-ml@×××××××××.org> wrote: |
2 |
> [...] |
3 |
> |
4 |
>> But it fixes how udev it's packaged in Gentoo, which is very good |
5 |
>> news. I haven't upgraded, since I need systemd-197 also (which wasn't |
6 |
>> yet in the tree yesterday), and I don't use LVM, but I'm wondering if |
7 |
>> the LVM problem happens when you use an initramfs. I'm guessing it |
8 |
>> doesn't, since udev should read rules from /lib/udev/rules.d AND |
9 |
>> /usr/lib/udev/rules.d. |
10 |
> |
11 |
> I don't use an initramfs but neither do i have a separate /usr. Still, lvm2 |
12 |
> hung after the udev upgrade. So it probably did _not_ search the old location. |
13 |
|
14 |
You are right, the code in udev only searches for one prefix. All the |
15 |
other commands the other members of the list have been mentioning |
16 |
would be necessary for all the people needing udev rules to boot. |
17 |
|
18 |
I believe this is a kinda serious bug in the packaging. And it's |
19 |
really easy to fix: the following patch should cover all the udev |
20 |
Gentoo users: |
21 |
|
22 |
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c |
23 |
index bb57d2a..027750a 100644 |
24 |
--- a/src/udev/udev-rules.c |
25 |
+++ b/src/udev/udev-rules.c |
26 |
@@ -1602,6 +1602,8 @@ struct udev_rules *udev_rules_new(struct udev |
27 |
*udev, int resolve_names) |
28 |
|
29 |
rules->dirs = strv_new("/etc/udev/rules.d", |
30 |
"/run/udev/rules.d", |
31 |
+ "/usr/lib/rules.d", |
32 |
+ "/lib/rules.d", |
33 |
UDEVLIBEXECDIR "/rules.d", |
34 |
NULL); |
35 |
if (!rules->dirs) { |
36 |
|
37 |
I thought Gentoo had a patch like that. It's necessary, since not |
38 |
every package will install rules in /lib. |
39 |
|
40 |
Regards. |
41 |
-- |
42 |
Canek Peláez Valdés |
43 |
Posgrado en Ciencia e Ingeniería de la Computación |
44 |
Universidad Nacional Autónoma de México |