From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kevin P. Fleming" Date: Fri, 04 Jun 2004 13:36:42 +0000 Subject: Re: Udev and initscripts Message-Id: <40C07AEA.6010206@backtobasicsmgmt.com> List-Id: References: <40C0530C.7010102@ums.usu.ru> In-Reply-To: <40C0530C.7010102@ums.usu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Alexander E. Patrakov wrote: > 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. I believe this is the real source of the problem; if you are going to support hotplug, then you really have to support it properly. That means that instead of having an initscript wait for devices to appear, the actions that initscript would do upon the device appearance should be done by a hotplug script. If the initscript really does need to wait until the devices appear, then you'll need to have a hotplug script that is invoked when the device(s) are created that creates some type of "flag" file that the initscript can wait for. However, this approach is fraught with problems, like the fact that the initscript will wait forever if the device just happens to not be attached to the system during this boot, or the device is not responding, etc. ------------------------------------------------------- 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