Blame 0067-95udev-rules-module-setup.sh-also-search-in-lib-udev.patch

Harald Hoyer 55891e
From e0f9ecc6a47bb01de04e6b44ade38f347fe057da Mon Sep 17 00:00:00 2001
Harald Hoyer 55891e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 55891e
Date: Thu, 6 Oct 2011 10:25:08 +0200
Harald Hoyer 55891e
Subject: [PATCH] 95udev-rules/module-setup.sh: also search in /lib/udev and
Harald Hoyer 55891e
 /usr/lib/udev
Harald Hoyer 55891e
Harald Hoyer 55891e
---
Harald Hoyer 55891e
 modules.d/95udev-rules/module-setup.sh |    9 ++++++++-
Harald Hoyer 55891e
 1 files changed, 8 insertions(+), 1 deletions(-)
Harald Hoyer 55891e
Harald Hoyer 55891e
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 55891e
index 876f7a3..eddf2b0 100755
Harald Hoyer 55891e
--- a/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 55891e
+++ b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 55891e
@@ -7,7 +7,9 @@ install() {
Harald Hoyer 55891e
     # FIXME: would be nice if we didn't have to know which rules to grab....
Harald Hoyer 55891e
     # ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
Harald Hoyer 55891e
     # of the rules we want so that we just copy those in would be best
Harald Hoyer 55891e
-    dracut_install udevd udevadm
Harald Hoyer 55891e
+    dracut_install udevadm
Harald Hoyer 55891e
+    [ -x /sbin/udevd ] && dracut_install udevd
Harald Hoyer 55891e
+
Harald Hoyer 55891e
     for i in /etc/udev/udev.conf /etc/group; do
Harald Hoyer 55891e
         inst_simple $i
Harald Hoyer 55891e
     done
Harald Hoyer 55891e
@@ -55,10 +57,15 @@ install() {
Harald Hoyer 55891e
         vol_id \
Harald Hoyer 55891e
         pcmcia-socket-startup \
Harald Hoyer 55891e
         pcmcia-check-broken-cis \
Harald Hoyer 55891e
+        udevd \
Harald Hoyer 55891e
         ; do
Harald Hoyer 55891e
         [ -e /lib/udev/$_i ] && dracut_install /lib/udev/$_i
Harald Hoyer 55891e
+        [ -e /usr/lib/udev/$_i ] && dracut_install /usr/lib/udev/$_i
Harald Hoyer 55891e
     done
Harald Hoyer 55891e
 
Harald Hoyer 55891e
+    [ -x /lib/udev/udevd ] && ln -s ../lib/udev/udevd /sbin/udevd
Harald Hoyer 55891e
+    [ -x /usr/lib/udev/udevd ] && ln -s ../usr/lib/udev/udevd /sbin/udevd
Harald Hoyer 55891e
+
Harald Hoyer 55891e
     [ -f /etc/arch-release ] && \
Harald Hoyer 55891e
         inst "$moddir/load-modules.sh" /lib/udev/load-modules.sh
Harald Hoyer 55891e