[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hotplug and ifup



At Wed, 26 Feb 2003 04:19:35 +1000,
Anthony Towns wrote:
> 
> [1  <text/plain; us-ascii (quoted-printable)>]
> On Wed, Feb 26, 2003 at 02:19:40AM +0900, Fumitoshi UKAI wrote:
> > At Sun, 23 Feb 2003 13:13:36 +1000,
> > > > > what should happen, and how should it happen? Should:
> > > > hotplug should tell ifup that it is calling it, perhaps by using
> > > > a special option.  Then ifup can decide what the policy is.
> > > ifup can't be called before S39ifupdown has been run, which is the
> > > problem here.
> > Hmm, then should I fix at least hotplug should be activated
> > after S39ifupdown?  Maybe I should support blacklist (Bug#180521).
> 
> Blacklist seems like fairly awkward -- everytime you have a new network
> module to autoload on boot, you need to specifically add it to the
> blacklist.
> 
> My thought was to delay the execution of the hotplug stuff until later
> in the boot cycle. Maybe simply adding something to hotplug like:
> 
> 	while [ -e /etc/nohotplug ]; do sleep 5; done
> 
> and having a "touch /etc/nohotplug" early in the boot sequence, and
> "rm /etc/nohotplug" at the end of /etc/rcS.d would work okay.

Is it necessary to run hotplug before some initscript in /etc/rcS.d,
such as moutnfs, ntpdate?  Can I assume all devices activated by
hotplug aren't used in /etc/rcS.d in any situation?

> The main thing is not to do hotplug for network stuff before S39ifupdown
> is run -- delaying it is fine, there's no need to avoid it altogether.

Ok, I see. I'll do it.

Thanks,
Fumitoshi UKAI



Reply to: