Re: Slow dependency calculation
Ed W
Tue Nov 10 19:53:47 2009
Roy Marples wrote:
You can replace the hwclock init script with the swclock init script which
sets the local time to the time when the system was shutdown. This avoids the
dependency recalc due to the invalid clock and you then run ntp to correctly
set the time.
Sounds like an interesting idea... What is swclock - not on my
openrc-0.4 system? (Aha, google comes up with some stuff, eg:
http://bugs.gentoo.org/272073 - I guess it's in 0.5 only?)
An additional problem for this setup is that it will be unreliably
connected to the internet and even then only over dialup, so ntp will
not normally be available. However, some kind of monotonically
increasing clock is at least an improvement... Actually I will
hopefully be fitting cmos batteries to the final design, so this may be
somewhat moot...
I also added the dependency calc script to the default (startup) level
(as well as the shutdown level). Can you see why this might be a
problem? Any reason not to do it by default? (In my case I assume the
user will always just pull the plug and so we will never run the
shutdown scripts - it's a router basically...
Cheers
Ed W
Archive administrator: postmaster@marples.name