Change kernel source to prevent hotplug?

Laurens Blankers lblankers at
Sat Sep 11 03:30:44 PDT 2004

In section 8.3 (of LFS 6.0-testing-20040909) the following sed command 
is given to change the kernel source:

sed -i 's@/sbin/hotplug@/bin/true@' kernel/kmod.c

The comment says that this is nessesary as to prevent the kernel from 
sending hotplug events when the system is not yet ready for them. But it 
appears, to me, that this line disables hotplug all together.

Could someone be more specific on what this line does? Why is sending 
events to user-space a problem? And this solution requires someone to 
remember to change the kernel source when it is updated, wouldn't it be 
a better solution to symlink /sbin/hotplug to /bin/true?


More information about the lfs-dev mailing list