[Buildroot] [PATCH v1] package/busybox: Avoid "can't create /proc/sys/kernel/hotplug" error

Peter Korsgaard peter at korsgaard.com
Fri May 24 07:49:30 UTC 2019


>>>>> "Peter" == Peter Korsgaard <peter at korsgaard.com> writes:

>>>>> "Andy" == Andy Shevchenko <andriy.shevchenko at linux.intel.com> writes:
 >> At runtime on most of the modern kernels [1] S10mdev script produces an error:
 >> /etc/init.d/S10mdev: line 9: can't create /proc/sys/kernel/hotplug: nonexistent directory

 >> since the commit

 >> caae7fa1d737 ("busybox: register mdev as hotplug helper when selected")

 >> added it unconditionally.

 >> Check the presence of procfs node before writing to it.

 >> [1]: Linux kernels with the commit
 >> 86d56134f1b6 ("kobject: Make support for uevent_helper optional.")
 >> applied.

 > But how can mdev work on such setups?

To be clear, if mdev needs CONFIG_UEVENT_HELPER=y for hotplug
notifications, then we should rather force that in linux/linux.mk and
mention the dependency in the mdev help text rather than silently not
having hotplug work.

I have marked this patch as changes requested in patchwork.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list