]> 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>
Wed, 31 Dec 2014 10:17:08 +0000 (10:17 +0000)
commit8e666f643e6a8720ca604706afed91fba4096eef
tree87278dc0e066192c93a95bbd3e82bce78c43d6dc
parent479baa37ba366f5371fbc35d95d39e27f9b14cd2
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.

(From OE-Core rev: f7b8445f2e89ad0a59c2859f9eb26855769f1070)

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/udev/udev/init