]> code.ossystems Code Review - openembedded-core.git/commit
udev: fix uevent-helper disable
authorJohan Hovold <johan@kernel.org>
Fri, 24 Oct 2014 15:39:40 +0000 (17:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Nov 2014 10:19:55 +0000 (10:19 +0000)
commitf7b8445f2e89ad0a59c2859f9eb26855769f1070
tree815037ae8ff6598fe0df5b7d09c8fa8194e6bfda
parent666c6a126cd12d2555361f5b573b6a26437df780
udev: fix uevent-helper disable

Make sure that /proc/sys/kernel/hotplug exists before trying to disable
the uevent-helper mechanism.

Since kernel commit 86d56134f1b6 ("kobject: Make support for
uevent_helper optional.") the kernel can be built without uevent-helper
support. In this case /proc/sys/kernel/hotplug does not exist and the
current sysvinit script fails with

/etc/rcS.d/S04udev: line 132: can't create /proc/sys/kernel/hotplug: nonexistent directory

when trying to disable the uevent-helper mechanism during boot.

Note that a single NULL-character has always been sufficient to disable.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/udev/udev/init