All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error
@ 2018-03-22 16:20 Joshua Henderson
  2018-03-25 19:20 ` Yann E. MORIN
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joshua Henderson @ 2018-03-22 16:20 UTC (permalink / raw)
  To: buildroot

The following error occures in the udev init script because the kernel config
may optionally not include uevent_helper.

/etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory

Work around this by not trying to access the destination if it's not available.

Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
---
 package/eudev/S10udev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/eudev/S10udev b/package/eudev/S10udev
index 640fec6..47c715c 100755
--- a/package/eudev/S10udev
+++ b/package/eudev/S10udev
@@ -28,7 +28,7 @@ test -r $UDEV_CONFIG || exit 6
 case "$1" in
     start)
         printf "Populating %s using udev: " "${udev_root:-/dev}"
-        printf '\000\000\000\000' > /proc/sys/kernel/hotplug
+        [ -e /proc/sys/kernel/hotplug ] && printf '\000\000\000\000' > /proc/sys/kernel/hotplug
         $UDEV_BIN -d || { echo "FAIL"; exit 1; }
         udevadm trigger --type=subsystems --action=add
         udevadm trigger --type=devices --action=add
-- 
2.7.4

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

* [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error
  2018-03-22 16:20 [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error Joshua Henderson
@ 2018-03-25 19:20 ` Yann E. MORIN
  2018-03-25 19:37 ` Peter Korsgaard
  2018-04-06 16:58 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2018-03-25 19:20 UTC (permalink / raw)
  To: buildroot

Joshua, All,

On 2018-03-22 09:20 -0700, Joshua Henderson spake thusly:
> The following error occures in the udev init script because the kernel config
> may optionally not include uevent_helper.
> 
> /etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory
> 
> Work around this by not trying to access the destination if it's not available.
> 
> Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/eudev/S10udev | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/eudev/S10udev b/package/eudev/S10udev
> index 640fec6..47c715c 100755
> --- a/package/eudev/S10udev
> +++ b/package/eudev/S10udev
> @@ -28,7 +28,7 @@ test -r $UDEV_CONFIG || exit 6
>  case "$1" in
>      start)
>          printf "Populating %s using udev: " "${udev_root:-/dev}"
> -        printf '\000\000\000\000' > /proc/sys/kernel/hotplug
> +        [ -e /proc/sys/kernel/hotplug ] && printf '\000\000\000\000' > /proc/sys/kernel/hotplug
>          $UDEV_BIN -d || { echo "FAIL"; exit 1; }
>          udevadm trigger --type=subsystems --action=add
>          udevadm trigger --type=devices --action=add
> -- 
> 2.7.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error
  2018-03-22 16:20 [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error Joshua Henderson
  2018-03-25 19:20 ` Yann E. MORIN
@ 2018-03-25 19:37 ` Peter Korsgaard
  2018-04-06 16:58 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-03-25 19:37 UTC (permalink / raw)
  To: buildroot

>>>>> "Joshua" == Joshua Henderson <joshua.henderson@microchip.com> writes:

 > The following error occures in the udev init script because the kernel config
 > may optionally not include uevent_helper.

 > /etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory

 > Work around this by not trying to access the destination if it's not available.

 > Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error
  2018-03-22 16:20 [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error Joshua Henderson
  2018-03-25 19:20 ` Yann E. MORIN
  2018-03-25 19:37 ` Peter Korsgaard
@ 2018-04-06 16:58 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-04-06 16:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Joshua" == Joshua Henderson <joshua.henderson@microchip.com> writes:

 > The following error occures in the udev init script because the kernel config
 > may optionally not include uevent_helper.

 > /etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory

 > Work around this by not trying to access the destination if it's not available.

 > Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>

Committed to 2018.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2018-04-06 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 16:20 [Buildroot] [PATCH] eudev: prevent udev init script nonexistent directory error Joshua Henderson
2018-03-25 19:20 ` Yann E. MORIN
2018-03-25 19:37 ` Peter Korsgaard
2018-04-06 16:58 ` Peter Korsgaard

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.