Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645650

Summary: >=sys-apps/systemd-234 breaks udev because it doesn't look for old files in /usr/lib/udev/rules.d
Product: Gentoo Linux Reporter: Soren Harward <stharward>
Component: Current packagesAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED OBSOLETE    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Soren Harward 2018-01-25 03:44:36 UTC
After upgrading from systemd-233 to systemd-236, my software raid stopped working on boot.  I eventually tracked down the problem to udev.  Since systemd moved from /usr/lib to /lib, it only looks for udev files in /lib/udev/rules.d . Any files installed in /usr/lib/udev/rules.d by other packages (e.g. mdadm, libinput) are still in the old /usr/lib/udev/rules.d directory, and systemd/udev doesn't read them.  The files in /usr/lib/udev/rules.d need to be (1) mv'd manually to /lib/udev/rules.d, (2) symlinked manually to /lib/udev/rules.d, or (3) the packages that installed the files need to be re-emerged.

emerge -1 /usr/lib/udev/rules.d/* works just fine. Maybe these instructions should be added to the 2017-07-16-systemd-rootprefix news item?

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2018-01-25 13:06:46 UTC
Gentoo's systemd hasn't used /usr/lib/udev for several years and have been then it was only enabled for a few months.

We were doing some weird stuff with pkg-config before 234, which probably caused your install to remain under /usr.