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

Bug#502227: Skipping NTP if no network interfaces: could be done in netcfg...



On Thu, Feb 17, 2011 at 07:17:48PM +0100, Christian PERRIER wrote:
> In this bug report, it is suggested that D-I does not attempt to sync
> the clock with NTP if no network was configured....which makes
> sense...
> 
> One way to do this could be presetting clock-setup/ntp to "False" if
> no network interface is configured in netcfg.
> 
> So, I hereby propose reassigning this to netcfg.

I'm rather hesitant to introduce this sort of tight coupling between
packages; it makes things brittle and prone to breakage.  On the other hand,
I know how hard it is to be able to detect network state, and changes to
what netcfg does in the future is likely to require changes in that code,
too.

How about a compromise position, of having netcfg write out some sort of
state file containing machine-readable details of what it did, which
clock-setup (and anything else that decides it needs to deal with that sort
of thing) can use to make their decisions?

- Matt



Reply to: