Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430460 - sys-fs/lvm2-2.02.95-r3: puts udev rules in /lib/udev, but udev-187 wants /usr/lib/udev
Summary: sys-fs/lvm2-2.02.95-r3: puts udev rules in /lib/udev, but udev-187 wants /usr...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 14:49 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2012-08-08 15:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leho Kraav (:macmaN @lkraav) 2012-08-08 14:49:23 UTC
I'm running udev-187.

My initramfs building is now broken. Goal is to have a fully working device-mapper compatible dracut-built initramfs again. For this I need certain udev rules to create needed dm-related /dev/disk entries, specifically 13-dm-disk.rules minimum.

$ qlist lvm2 | grep rules
/lib/udev/rules.d/13-dm-disk.rules
/lib/udev/rules.d/69-dm-lvm-metad.rules
/lib/udev/rules.d/10-dm.rules
/lib/udev/rules.d/11-dm-lvm.rules
/lib/udev/rules.d/95-dm-notify.rules

But for dracut and udev-187 I need to specify udevdir=/usr/lib/udev, otherwise some other rules are going to be missing from initramfs.

ssuominen wrote in https://bugs.gentoo.org/show_bug.cgi?id=430412#c1

"I suppose this could be done, but please file individual bugs for packages still installing into /lib/udev since everything should respect the udevdir= from udev.pc pkg-config file"

I just rebuilt lvm2 but it didn't have any effect. Looking at the ebuild, I discovered it's not supposed to work because the ebuild has ${EPREFIX}/lib/udev hardcoded.

What is the solution here, or am I doing something wrong? Is this simply part of bug 411627?

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-08-08 14:53:54 UTC
This has already been fixed in ~arch with a revision bump.

*lvm2-2.02.95-r4 (08 Aug 2012)

  08 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> +lvm2-2.02.95-r4.ebuild:
  Use udev.pc pkg-config file to determine correct udevdir for compability with
  sys-fs/udev >= 187.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-08-08 14:55:06 UTC
And udev-187-r1 applies a patch that rules.d files still work from /lib/udev/rules.d anyway, so this was never a problem 
It's just the other helper apps in /lib/udev that get ignored wrt bug 430412)
Comment 3 Leho Kraav (:macmaN @lkraav) 2012-08-08 15:26:13 UTC
OK thanks for the fix! Glad I didn't start doing my upgrades earlier :> My immediate problem is just getting a single location of the rule files for dracut and booting. Whether udev can later find everything in both locations is a secondary problem, but of course I'm glad it's already taken care of.