All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] udev: fix init script for the location of udevd
@ 2013-04-09 16:08 Saul Wold
  2013-04-09 16:33 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2013-04-09 16:08 UTC (permalink / raw)
  To: openembedded-core

Ensure we can update the script base don the location of the udevd installation

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/udev/udev.inc        | 2 ++
 meta/recipes-core/udev/udev/init       | 4 ++--
 meta/recipes-core/udev/udev/udev-cache | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index c4d2ce4..d025458 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -79,6 +79,8 @@ do_install_append () {
 	install -d ${D}${sysconfdir}/init.d
 	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
 	install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
+	sed -i s%@UDEVD@%${base_sbindir}/udev/udevd% ${D}${sysconfdir}/init.d/udev
+	sed -i s%@UDEVD@%${base_sbindir}/udev/udevd% ${D}${sysconfdir}/init.d/udev-cache
 
 	install -d ${D}${sysconfdir}/default
 	install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 95d2672..37b5231 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -15,7 +15,7 @@ export TZ=/etc/localtime
 
 [ -d /sys/class ] || exit 1
 [ -r /proc/mounts ] || exit 1
-[ -x /lib/udev/udevd ] || exit 1
+[ -x @UDEVD@ ] || exit 1
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
@@ -71,7 +71,7 @@ case "$1" in
 
     # trigger the sorted events
     echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
-    /lib/udev/udevd -d
+    @UDEVD@ -d
 
     /usr/bin/udevadm control --env=STARTUP=1
     if [ "$not_first_boot" != "" ];then
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache
index 0f3d7cd..01fec6e 100644
--- a/meta/recipes-core/udev/udev/udev-cache
+++ b/meta/recipes-core/udev/udev/udev-cache
@@ -12,7 +12,7 @@
 export TZ=/etc/localtime
 
 [ -r /proc/mounts ] || exit 1
-[ -x /lib/udev/udevd ] || exit 1
+[ -x @UDEVD@ ] || exit 1
 [ -d /sys/class ] || exit 1
 
 [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
-- 
1.8.0.2




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

* Re: [PATCH] udev: fix init script for the location of udevd
  2013-04-09 16:08 [PATCH] udev: fix init script for the location of udevd Saul Wold
@ 2013-04-09 16:33 ` Otavio Salvador
  2013-04-09 17:00   ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2013-04-09 16:33 UTC (permalink / raw)
  To: Saul Wold; +Cc: Patches and discussions about the oe-core layer

On Tue, Apr 9, 2013 at 1:08 PM, Saul Wold <sgw@linux.intel.com> wrote:
> Ensure we can update the script base don the location of the udevd installation
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>

This does not work as we have systemd-udevd as possible binary.
Besides, there's a type in the commit log "don the location" ;-)

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: [PATCH] udev: fix init script for the location of udevd
  2013-04-09 16:33 ` Otavio Salvador
@ 2013-04-09 17:00   ` Burton, Ross
  2013-04-09 17:06     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2013-04-09 17:00 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer

On 9 April 2013 17:33, Otavio Salvador <otavio@ossystems.com.br> wrote:
> On Tue, Apr 9, 2013 at 1:08 PM, Saul Wold <sgw@linux.intel.com> wrote:
>> Ensure we can update the script base don the location of the udevd installation
>>
>> Signed-off-by: Saul Wold <sgw@linux.intel.com>
>
> This does not work as we have systemd-udevd as possible binary.

But these changes are in the "udev" package, so will only be used on
systems which are booting udev.

Related, all of the changes happening to udev need to happen to systemd aswell.

Ross



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

* Re: [PATCH] udev: fix init script for the location of udevd
  2013-04-09 17:00   ` Burton, Ross
@ 2013-04-09 17:06     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-04-09 17:06 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On Tue, Apr 9, 2013 at 2:00 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 9 April 2013 17:33, Otavio Salvador <otavio@ossystems.com.br> wrote:
>> On Tue, Apr 9, 2013 at 1:08 PM, Saul Wold <sgw@linux.intel.com> wrote:
>>> Ensure we can update the script base don the location of the udevd installation
>>>
>>> Signed-off-by: Saul Wold <sgw@linux.intel.com>
>>
>> This does not work as we have systemd-udevd as possible binary.
>
> But these changes are in the "udev" package, so will only be used on
> systems which are booting udev.
>
> Related, all of the changes happening to udev need to happen to systemd aswell.

The init-live problem people are concerned about is not fixed for
systemd-udevd as well.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

end of thread, other threads:[~2013-04-09 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 16:08 [PATCH] udev: fix init script for the location of udevd Saul Wold
2013-04-09 16:33 ` Otavio Salvador
2013-04-09 17:00   ` Burton, Ross
2013-04-09 17:06     ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.