From: "Kevin P. Fleming" <kpfleming@backtobasicsmgmt.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Udev and initscripts
Date: Fri, 04 Jun 2004 13:36:42 +0000 [thread overview]
Message-ID: <40C07AEA.6010206@backtobasicsmgmt.com> (raw)
In-Reply-To: <40C0530C.7010102@ums.usu.ru>
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
prev parent reply other threads:[~2004-06-04 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-04 10:46 Udev and initscripts Alexander E. Patrakov
2004-06-04 13:36 ` Kevin P. Fleming [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40C07AEA.6010206@backtobasicsmgmt.com \
--to=kpfleming@backtobasicsmgmt.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).