Re: [PATCH 1/2] hwclock: Use /var/lib/hwclock/adjtime instead of /etc/adjtime

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

 



Hello Karel,

 On Sunday, March 9, 2008 at 3:38:08 +0100, Karel Zak wrote:

> a command line option would be nice.

Under normal conditions, on a given machine, each and every invocation
of hwclock has to use the same adjtime file. Using different files would
give wrong results. So a command line option to select a file doesn't
make much sense, and would be prone to mismatches between various
scripts, or be forgotten when the user invokes hwclock by hand.

I think that searching both places and picking the first file found
would be better. Perhaps overriden by a compile-time option forcing one
place, or a list of places to search. Itself overriden by ADJTIME_PATH
in environment.

This way, the sysadmin creates once an adjtime file where it prefers,
and it will be picked automatically by all future hwclock invocations.
Systems with permanently readonly roots can use /var and delay hwclock
until after it's mounted; systems with writable roots can continue to
use /etc, or /var if it's the same partition.


Alain.
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux