From 7085ad2b32fe6681db51ae3654b3df6a8c3709e9 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 8 Jan 2014 12:07:18 +0100 Subject: [PATCH] 00-devmgr.sh: do not set the hotplug handler, Gentoo bug #493874 systemd will not work, and setting it to /sbin/mdev doesn't work either since 99% of the non-systemd systems use udev/eudev. If you really want to set the hotplug handler, do it in the kernel config. --- defaults/initrd.d/00-devmgr.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/defaults/initrd.d/00-devmgr.sh b/defaults/initrd.d/00-devmgr.sh index 05677df..8ee3c8a 100755 --- a/defaults/initrd.d/00-devmgr.sh +++ b/defaults/initrd.d/00-devmgr.sh @@ -17,16 +17,11 @@ is_mdev() { devmgr_init() { if is_udev; then good_msg "Activating udev" - echo "${UDEVD}" > /proc/sys/kernel/hotplug - echo "" > /sys/kernel/uevent_helper "${UDEVD}" --daemon --resolve-names=never && \ udevadm trigger --action=add && \ udevadm settle || bad_msg "udevd failed to run" elif is_mdev; then good_msg "Activating mdev" - # Serialize hotplug events - touch /dev/mdev.seq - echo "${MDEVD}" > /proc/sys/kernel/hotplug # Ensure that device nodes are properly configured "${MDEVD}" -s || bad_msg "mdev -s failed" else