summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-10-24 17:39:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-31 10:18:30 +0000
commitdda084e13ce37cb366ffabc4d1426979ba4d6b82 (patch)
treeec5fb8d98550f302ebb7fc7d6163e2bf975f06bc /meta/recipes-core
parent044039dc8e6d8846b2f609d0daaaf719c319a802 (diff)
downloadpoky-dda084e13ce37cb366ffabc4d1426979ba4d6b82.tar.gz
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) (From OE-Core rev: 8e666f643e6a8720ca604706afed91fba4096eef) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 96bd774d24..d26cbfca96 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -99,7 +99,7 @@ case "$1" in
99 kill_udevd > "/dev/null" 2>&1 99 kill_udevd > "/dev/null" 2>&1
100 100
101 # trigger the sorted events 101 # trigger the sorted events
102 echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug 102 [ -e /proc/sys/kernel/hotplug ] && echo -e '\000' >/proc/sys/kernel/hotplug
103 @UDEVD@ -d 103 @UDEVD@ -d
104 104
105 udevadm control --env=STARTUP=1 105 udevadm control --env=STARTUP=1