linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Udev and initscripts
@ 2004-06-04 10:46 Alexander E. Patrakov
  2004-06-04 13:36 ` Kevin P. Fleming
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander E. Patrakov @ 2004-06-04 10:46 UTC (permalink / raw)
  To: linux-hotplug

It has been stated many times that scripts that should run after device 
is available should live in /etc/dev.d directory. However, I have 
trouble following this. The recommendation works perfectly when one has 
to wait for creation of a single device, but it is difficult or 
impossible to implement when waiting for many unknown devices.

The problem is that Linux From Scratch needs an initscript with the 
following properties:

1) it should read a file "/etc/sysconfig/modules" (aka "/etc/modules" in 
Debian). All modules listed there by the user should be modprobed into 
the kernel.

2) The next initscript should be able to assume that all devices it 
needs are already there.

How do I implement (2), i.e., wait for creation of all devices that can 
be created by a user-specified list of modules?

Just doing nothing does not work, as illustrated by the following example:

[root in ~]# modprobe nbd ; ( ls /dev/nbd* | wc -l ) ; sleep 1 ; \
( ls /dev/nbd* | wc -l )
     113
     128

-- 
Alexander E. Patrakov


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-04 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04 10:46 Udev and initscripts Alexander E. Patrakov
2004-06-04 13:36 ` Kevin P. Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).