cvs commit: LFS/bootscripts/lfs/init.d udev

Alexander E. Patrakov see at the.sig
Wed Jun 2 07:46:19 PDT 2004


nathan at linuxfromscratch.org wrote:
>   Log:
>   Reorganizing the udev script again, to prevent pre hotplug events from
>   wrecking a system
>   -		mount -n -t ramfs ramfs /dev
>   +		grep -q " /dev " /proc/mounts || mount -n -t ramfs ramfs /dev
Good

>   +		# When the hotplug package isn't installed, make sure that udev
>   +		# still gets hotplug events.
>   +		if [ -x /sbin/hotplug ]; then
>   +			echo /sbin/hotplug > /proc/sys/kernel/hotplug
>   +		else
>   +			echo /sbin/udev > /proc/sys/kernel/hotplug
>   +		fi

Wrong. It's too early to echo /sbin/hotplug > /proc/sys/kernel/hotplug, 
because /usr is not mounted. The hotplug package simply won't work. I 
propose to

echo /sbin/udev > /proc/sys/kernel/hotplug

unconditionally, without any if's.

-- 
Alexander E. Patrakov
To get my address: echo '0!42!+/6 at 5-3.535.25' | tr [!-:] [a-z] | tr n .



More information about the lfs-book mailing list