Commit 0d3c155c authored by Michael Biebl's avatar Michael Biebl
Browse files

Don't write to /sys/kernel/uevent_helper unconditionally

Fix udev SysV init script and d-i start script to not write to
/sys/kernel/uevent_helper unconditionally to not fail on a kernel with
CONFIG_UEVENT_HELPER unset.

Closes: #756312
parent 046fd6b0
......@@ -11,6 +11,9 @@ systemd (208-8) UNRELEASED; urgency=medium
* Use "kmod static-nodes --output=/proc/self/fd/1" in make_static_nodes() as
we can't rely on /dev/stdout to exist at this point during boot.
(Closes: #757830)
* Fix udev SysV init script and d-i start script to not write to
/sys/kernel/uevent_helper unconditionally to not fail on a kernel with
CONFIG_UEVENT_HELPER unset. (Closes: #756312)
-- Martin Pitt <mpitt@debian.org> Thu, 07 Aug 2014 08:31:38 +0200
......
#!/bin/sh -e
echo > /sys/kernel/uevent_helper
if [ -w /sys/kernel/uevent_helper ]; then
echo > /sys/kernel/uevent_helper
fi
if ! grep -E -q "^[^[:space:]]+ /dev devtmpfs" /proc/mounts; then
mount -n -o mode=0755 -t devtmpfs devtmpfs /dev
mount -n -o mode=0755 -t devtmpfs devtmpfs /dev
fi
/lib/systemd/systemd-udevd --daemon --resolve-names=never
......
......@@ -173,7 +173,9 @@ case "$1" in
warn_if_interactive
fi
echo > /sys/kernel/uevent_helper
if [ -w /sys/kernel/uevent_helper ]; then
echo > /sys/kernel/uevent_helper
fi
move_udev_database
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment