Commit 86ab5f59 authored by Michael Biebl's avatar Michael Biebl
Browse files

Fix boot failures if CONFIG_UEVENT_HELPER is disabled

Drop the obsolete check for /sys/kernel/uevent_helper from postinst and
the SysV init script and do not unconditionally overwrite it in the
initramfs hook. Since a long time now udev has been using the netlink
interface to communicate with the kernel and with Linux 3.16 it is
possible to disable CONFIG_UEVENT_HELPER completely.

Closes: #752742
parent ae43e491
......@@ -9,6 +9,11 @@ systemd (204-13) UNRELEASED; urgency=medium
loop when trying to break an ordering cycle. (Closes: #752259)
* Update insserv generator to not create any drop-in files for services
where the corresponding SysV init script does not exist.
* Drop the check for /sys/kernel/uevent_helper from postinst and the SysV
init script and do not unconditionally overwrite it in the initramfs hook.
Since a long time now udev has been using the netlink interface to
communicate with the kernel and with Linux 3.16 it is possible to disable
CONFIG_UEVENT_HELPER completely. (Closes: #752742)
-- Michael Biebl <biebl@debian.org> Fri, 27 Jun 2014 22:37:23 +0200
......
......@@ -11,7 +11,9 @@ case "$1" in
;;
esac
echo > /sys/kernel/uevent_helper
if [ -w /sys/kernel/uevent_helper ]; then
echo > /sys/kernel/uevent_helper
fi
/lib/systemd/systemd-udevd --daemon --resolve-names=never
......
......@@ -122,11 +122,6 @@ if [ ! -d /sys/class/ ]; then
log_end_msg 1
fi
if [ ! -e /sys/kernel/uevent_helper ]; then
log_failure_msg "udev requires hotplug support, not started"
log_end_msg 1
fi
if ! ps --no-headers --format args ax | egrep -q '^\['; then
log_warning_msg "udev does not support containers, not started"
exit 0
......
......@@ -49,11 +49,6 @@ can_start_udevd() {
return 1
fi
if [ ! -e /sys/kernel/uevent_helper ]; then
echo "udev requires hotplug support, not started."
return 1
fi
if ! ps --no-headers --format args ax | egrep -q '^\['; then
echo "udev does not support containers, not started."
return 1
......
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