From patchwork Tue Nov 27 12:57:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: udev 182: Create a symlink of /lib/udev/udevd in /sbin Date: Tue, 27 Nov 2012 12:57:18 -0000 From: Shakeel, Muhammad X-Patchwork-Id: 39693 Message-Id: <1354021038-26183-1-git-send-email-muhammad_shakeel@mentor.com> To: openembedded-core@lists.openembedded.org From: Muhammad Shakeel >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 --- 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"