Skip to contentSkip to conversation

udev_182: creat a symbolic file /sbin/udevadm to fix haldaemon starts error.

PATCH In review leimaohui 3 participants 4 messages Sep 20, 2013 – Sep 23, 2013

lore
Share & tools
lore

leimaohui

author
#0 lore raw

PATCH 1/1 udev_182: creat a symbolic file /sbin/udevadm to fix haldaemon starts error.

The haldaemon requires /sbin/udevadm to start.
So creat a symbolic file /sbin/udevadm that links to /usr/bin/udevadm.

---
 meta/recipes-core/udev/udev.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-core/udev/udev.inc +0 -0
index dd250f7..fe53979 100644
@@ -93,6 +93,9 @@ do_install_append () {
    install -d ${D}${sysconfdir}/udev/rules.d/
 
    install -m 0644 ${WORKDIR}/local.rules

${D}${sysconfdir}/udev/rules.d/local.rules
+
+ install -d ${D}/${base_sbindir}
+ ln -s ../usr/bin/udevadm ${D}/${base_sbindir}/udevadm

    # hid2hci has moved to bluez4. removed in udev as of version 169
    rm -f ${D}${base_libdir}/udev/hid2hci
--
1.7.1
#1 lore raw
Quoted 2 lines · leimaohui

The haldaemon requires /sbin/udevadm to start.
So creat a symbolic file /sbin/udevadm that links to /usr/bin/udevadm.

Why not fix haldaemon to use the right path?

Ross

author
#2 lore raw
Quoted 5 lines · On 20 September 2013 4:38 PM, Burton, Ross [mailto:[email protected]] wrote:
Quoted 2 lines · leimaohui

The haldaemon requires /sbin/udevadm to start.
So creat a symbolic file /sbin/udevadm that links to /usr/bin/udevadm.

Why not fix haldaemon to use the right path?

But according to udev's changlog,I think it is better to add a symlink to udevadm.

http://upstream-tracker.org/changelogs/libudev/182/changelog.html

" The default install location of the 'udevadm' tool moved from 'sbin' to /usr/bin. Some tools expect udevadm in 'sbin', a symlink to udevadm needs to be manually created if needed, or --bindir=/sbin be specified."

Best Regards,
Maohui Lei

#3 lore raw
Quoted 7 lines · leimaohui
Quoted 5 lines · On 20 September 2013 4:38 PM, Burton, Ross [mailto:[email protected]] wrote:
Quoted 2 lines · leimaohui

The haldaemon requires /sbin/udevadm to start.
So creat a symbolic file /sbin/udevadm that links to /usr/bin/udevadm.

Why not fix haldaemon to use the right path?

Quoted 9 lines

But according to udev's changlog,I think it is better to add a symlink to udevadm.

http://upstream-tracker.org/changelogs/libudev/182/changelog.html

" The default install location of the 'udevadm' tool moved from 'sbin' to /usr/bin. Some tools expect udevadm in 'sbin', a symlink to udevadm needs to be manually created if needed, or --bindir=/sbin be specified."

As suggested by Ross, please patch haldaemon to use the the oecore location.

Thanks
Sau!

Quoted 12 lines

Best Regards,
Maohui Lei

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core