dracut/dracut-040-fix-udevdir-detection.patch
Silvan Calarco 89473df6b9 update to 040
added patch to fix udevdir detection causing all udev rules to be skipped [release 040-1mamba;Tue Nov 11 2014]
2024-01-05 21:56:16 +01:00

14 lines
459 B
Diff

--- dracut-040/dracut.sh.orig 2014-11-11 22:39:32.180194759 +0100
+++ dracut-040/dracut.sh 2014-11-11 22:41:23.392285954 +0100
@@ -1198,8 +1198,9 @@
[[ -d $udevdir ]] \
|| udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
if ! [[ -d "$udevdir" ]]; then
- [[ -d /lib/udev ]] && udevdir=/lib/udev
+ [[ -d /lib/udev ]] && udevdir=/lib/udev || {
[[ -d /usr/lib/udev ]] && udevdir=/usr/lib/udev
+ }
fi
[[ -d $systemdutildir ]] \