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 Matthias,

 On Friday, March 7, 2008 at 12:44:32 +0100, Matthias Koenig wrote:

> As hwclock updates this file when running, it should be in /var/lib as
> suggested by FHS.

But /var may be a different partition, perhaps not yet mounted when
hwclock --hctosys is first invoked during bootup. /etc is guaranteed to
be on / and to be readable at any time.

And since years /etc/adjtime became a well established name. Some other
applications and various scripts expect to find the adjfile there.
Example adjtimex(1).

A smart transition scheme could be to search both places, and use the
file where it was found. Scheme overridable by an environment variable
ADJTIME_PATH=/other/place/adjtime (to be compatible with the mainline).


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