From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5DD8F138407 for ; Fri, 11 Jan 2013 22:04:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EBC621C015; Fri, 11 Jan 2013 22:04:40 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A23321C01D for ; Fri, 11 Jan 2013 22:03:08 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id e13so2944207iej.4 for ; Fri, 11 Jan 2013 14:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jH1IABGjdvkuIDNHbSGIZpwDtp1N/50rfETMc008yqE=; b=tIMVSbufCmRJq7W2vWBTzV//EkorbSh82WSWO6zZwzTC3WNLj5WIViedFq2pmFZptP DfQSZFuHsaXuQHD67rQfXcCKOgFAdxhQStgL1G1CIZkeMwTyk8vUgXqKB8JatE1N5CUB F0lbjncMlQwu3cNkXqxdUix/6KaiM0OflaKpKog/r0OFK7hxZrm6Beeiecu1NILTvYhE 5Te/t/uSsaHFb0My1J/rmg5NVlvNrLNL5luxMZtIHShcETn0lh3Ny6PqFdLqLag9+r4H qwF5daQUoHXdKII5ICJn3vcndlCfY7p8B5JSn/Q794y8Vb8SuBEylcJQX+sZNhOGT9+f xASw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.50.33.138 with SMTP id r10mr618126igi.6.1357941788327; Fri, 11 Jan 2013 14:03:08 -0800 (PST) Received: by 10.64.32.195 with HTTP; Fri, 11 Jan 2013 14:03:08 -0800 (PST) In-Reply-To: <1916110.oGLF5dHOIP@blacky> References: <1916110.oGLF5dHOIP@blacky> Date: Fri, 11 Jan 2013 16:03:08 -0600 Message-ID: Subject: Re: [gentoo-user] udev-197 moves from /usr/lib to /lib From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 07f9e91b-2484-428c-b8f7-a8bd333e93c0 X-Archives-Hash: a4a4978e70b500c6025da57fd726b5b5 On Fri, Jan 11, 2013 at 3:39 PM, Sascha Cunz wrot= e: > [...] > >> But it fixes how udev it's packaged in Gentoo, which is very good >> news. I haven't upgraded, since I need systemd-197 also (which wasn't >> yet in the tree yesterday), and I don't use LVM, but I'm wondering if >> the LVM problem happens when you use an initramfs. I'm guessing it >> doesn't, since udev should read rules from /lib/udev/rules.d AND >> /usr/lib/udev/rules.d. > > I don't use an initramfs but neither do i have a separate /usr. Still, lv= m2 > hung after the udev upgrade. So it probably did _not_ search the old loca= tion. You are right, the code in udev only searches for one prefix. All the other commands the other members of the list have been mentioning would be necessary for all the people needing udev rules to boot. I believe this is a kinda serious bug in the packaging. And it's really easy to fix: the following patch should cover all the udev Gentoo users: diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index bb57d2a..027750a 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1602,6 +1602,8 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names) rules->dirs =3D strv_new("/etc/udev/rules.d", "/run/udev/rules.d", + "/usr/lib/rules.d", + "/lib/rules.d", UDEVLIBEXECDIR "/rules.d", NULL); if (!rules->dirs) { I thought Gentoo had a patch like that. It's necessary, since not every package will install rules in /lib. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico