From 6f000443170614db0972fe6fb848560d9285bc8b Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 20 Oct 2011 12:13:25 +0200
Subject: [PATCH] 95udev-rules/module-setup.sh: correctly create udevd symlink
---
modules.d/95udev-rules/module-setup.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
index 915c1fc..5f8bae8 100755
--- a/modules.d/95udev-rules/module-setup.sh
+++ b/modules.d/95udev-rules/module-setup.sh
@@ -63,8 +63,13 @@ install() {
[ -e /usr/lib/udev/$_i ] && dracut_install /usr/lib/udev/$_i
done
- [ -x /lib/udev/udevd ] && ln -s ../lib/udev/udevd "$initdir/sbin/udevd"
- [ -x /usr/lib/udev/udevd ] && ln -s ../usr/lib/udev/udevd "$initdir/sbin/udevd"
+ if ! [ -e "$initdir/sbin/udevd" ]; then
+ if [ -x /usr/lib/udev/udevd ]; then
+ ln -s /usr/lib/udev/udevd "$initdir/sbin/udevd"
+ elif [ -x /lib/udev/udevd ]; then
+ ln -s /lib/udev/udevd "$initdir/sbin/udevd"
+ fi
+ fi
[ -f /etc/arch-release ] && \
inst "$moddir/load-modules.sh" /lib/udev/load-modules.sh