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
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.
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)
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.