Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] udev 182: Create a symlink of /lib/udev/udevd in /sbin
@ 2012-11-27 12:57 Shakeel, Muhammad
  2012-11-27 14:15 ` Otavio Salvador
  0 siblings, 1 reply; 10+ messages in thread
From: Shakeel, Muhammad @ 2012-11-27 12:57 UTC (permalink / raw)
  To: openembedded-core

From: Muhammad Shakeel <muhammad_shakeel@mentor.com>

From udev 174 changelog:
"The udev daemon moved to /lib/udev/udevd. Non-systemd init systems
and non-dracut initramfs image generators need to change the init
scripts. Alternatively the udev build needs to move udevd back to
/sbin or create a symlink in /sbin, which is not done by default."

Also for 64 bit architectures there exists /lib64/udev instead of
/lib/udev and current init script fails to start udev.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
---
 meta/recipes-core/udev/udev.inc    |    4 ++++
 meta/recipes-core/udev/udev/init   |    4 ++--
 meta/recipes-core/udev/udev_182.bb |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 4705b9b..a882efe 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -96,5 +96,9 @@ do_install_append () {
 	# hid2hci has moved to bluez4. removed in udev as of version 169
 	rm -f ${D}${base_libdir}/udev/hid2hci
 
+        # Create a symlink of /lib/udev/udevd in /sbin
+        install -d ${D}${base_sbindir}
+        ln -s ..${base_libdir}/udev/udevd ${D}${base_sbindir}/udevd
+
 	echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
 }
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 74449fe..84631ac 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -13,7 +13,7 @@ export TZ=/etc/localtime
 
 [ -d /sys/class ] || exit 1
 [ -r /proc/mounts ] || exit 1
-[ -x /lib/udev/udevd ] || exit 1
+[ -x /sbin/udevd ] || exit 1
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
@@ -69,7 +69,7 @@ kill_udevd > "/dev/null" 2>&1
 
 # trigger the sorted events
 echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
-/lib/udev/udevd -d
+/sbin/udevd -d
 
 /usr/bin/udevadm control --env=STARTUP=1
 if [ "$not_first_boot" != "" ];then
diff --git a/meta/recipes-core/udev/udev_182.bb b/meta/recipes-core/udev/udev_182.bb
index c41de9f..0ae9f8c 100644
--- a/meta/recipes-core/udev/udev_182.bb
+++ b/meta/recipes-core/udev/udev_182.bb
@@ -1,6 +1,6 @@
 include udev.inc
 
-PR = "r2"
+PR = "r3"
 
 # module-init-tools from kmod_git will provide libkmod runtime
 DEPENDS += "module-init-tools"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-12-05 14:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 12:57 [PATCH] udev 182: Create a symlink of /lib/udev/udevd in /sbin Shakeel, Muhammad
2012-11-27 14:15 ` Otavio Salvador
2012-11-28  2:26   ` ChenQi
2012-11-28 10:51     ` Otavio Salvador
2012-11-28 11:09       ` Shakeel, Muhammad
2012-11-29  9:26         ` ChenQi
2012-11-29 10:49           ` Otavio Salvador
2012-11-30  6:00         ` ChenQi
2012-12-05 13:31           ` Shakeel, Muhammad
2012-12-05 14:00             ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox