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

login
register
mail settings
Submitter leimaohui
Date Sept. 20, 2013, 6:46 a.m.
Message ID <00d201ceb5cd$1440b070$3cc21150$@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/58411/
State New
Headers show

Comments

leimaohui - Sept. 20, 2013, 6:46 a.m.
The haldaemon requires /sbin/udevadm to start.
So creat a symbolic file  /sbin/udevadm that links to /usr/bin/udevadm.



Signed-off-by: leimaohui <leimaohui@cn.fujitsu.com>
---
 meta/recipes-core/udev/udev.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

    rm -f ${D}${base_libdir}/udev/hid2hci
--
1.7.1
Ross Burton - Sept. 20, 2013, 8:37 a.m.
On 20 September 2013 07:46, leimaohui <leimaohui@cn.fujitsu.com> wrote:
> 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
leimaohui - Sept. 20, 2013, 9:49 a.m.
On 20 September 2013 4:38 PM, Burton, Ross [mailto:ross.burton@intel.com] wrote:
> On 20 September 2013 07:46, leimaohui <leimaohui@cn.fujitsu.com> wrote:
> > 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
Saul Wold - Sept. 23, 2013, 3:34 p.m.
On 09/20/2013 02:49 AM, leimaohui wrote:
> On 20 September 2013 4:38 PM, Burton, Ross [mailto:ross.burton@intel.com] wrote:
>> On 20 September 2013 07:46, leimaohui <leimaohui@cn.fujitsu.com> wrote:
>>> 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."
>
As suggested by Ross, please patch haldaemon to use the the oecore location.

Thanks
	Sau!

> Best Regards,
> Maohui Lei
>
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>

Patch

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index dd250f7..fe53979 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -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