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 32345138407 for ; Fri, 11 Jan 2013 22:09:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B192721C011; Fri, 11 Jan 2013 22:09:05 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D369521C055 for ; Fri, 11 Jan 2013 22:07:15 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so2928330iec.41 for ; Fri, 11 Jan 2013 14:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=FFqIwn0LO7NVFoXC8BzlhoLZtREdIDAtoOC6jtCbEqI=; b=uWMnFFJC45qRAOPJ/1DZmDzNU4uJhnvPlvrw315xDbyYuXKAho63LLz3IxyMYvwCdQ G+I8Lmz8cCndDBgroDVClz5mab++/peL2dcaPuBkwjmkurwRL003AoURIaEbfkywFlNh 8OueqYrDCvc3dRbvJYTm48rJH4CiVd2jILHdHHmX3cm2MC2+CCfBK1dTF9lv2Kno9hTL Gf2u/9NQadtW1SRXGp5XlN5KahlTX+WOXfWSQ43krcB12WB+cQSNfeojWoivgsIRPawR 7N94YPdLrIMKFmFbv5VkUpuIrjQVcw9+lBRV5UzbjCaWtH8EUaAAIgFZzFM5RdzGf7ZP g2Iw== 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 X-Received: by 10.50.89.163 with SMTP id bp3mr522009igb.89.1357942035112; Fri, 11 Jan 2013 14:07:15 -0800 (PST) Received: by 10.64.32.195 with HTTP; Fri, 11 Jan 2013 14:07:15 -0800 (PST) In-Reply-To: References: <1916110.oGLF5dHOIP@blacky> Date: Fri, 11 Jan 2013 16:07:15 -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: 6109ddae-532c-419c-9480-5e3aacbb9d59 X-Archives-Hash: 16299063e86c4d1893c06272f3513a3a On Fri, Jan 11, 2013 at 4:03 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: > On Fri, Jan 11, 2013 at 3:39 PM, Sascha Cunz wr= ote: >> [...] >> >>> 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, l= vm2 >> hung after the udev upgrade. So it probably did _not_ search the old loc= ation. > > 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. I hit click too quickly: Gentoo *does* include a patch like the one I prese= nted: >From d2a922619a466c47a88ff11aea43bc2dbb4ea324 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Micha=3DC5=3D82=3D20G=3DC3=3DB3rny?=3D Date: Fri, 13 Jul 2012 16:15:14 +0200 Subject: [PATCH 1/2] udev: add /lib/udev/rules.d to rules directories This adds /lib if split-usr is enabled to the directories where udev searches for rules.d. This is needed if split-usr is enabled because some software still installs rules in /lib/udev/rules.d. --- src/udev/udev-rules.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index e6f0f5d..f6b0c01 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1603,6 +1603,9 @@ 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", UDEVLIBEXECDIR "/rules.d", +#ifdef HAVE_SPLIT_USR + "/lib/udev/rules.d", +#endif NULL); if (!rules->dirs) { log_error("failed to build config directory array"); --=20 It should be in udev-197-patches-1.tar.bz2 (it is in udev-196-patches-1.tar.bz2). So Gentoo *does* read the rules from /lib if the patch is present. If that's the case, the problem with LVM is not because it can't read the rules. 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