Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68139 - FHS moves /etc/adjtime to /var/lib/hwclock
Summary: FHS moves /etc/adjtime to /var/lib/hwclock
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 05:40 UTC by Peter S. Mazinger
Modified: 2006-10-06 02:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter S. Mazinger 2004-10-19 05:40:23 UTC
util-linux's hwclock uses /etc/adjtime, that's deprecated by FHS (this file is also modified by some utils, so it's unproper to have it in /etc

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-10-19 07:05:52 UTC
having a directory all its own for one file seems kind of dumb

plus, it's currently labeled 'optional' ...

i'd  prefer to move it to /var/lib/misc/adjtime ...
Comment 2 Peter S. Mazinger 2004-11-18 00:43:30 UTC
The question is, who modifies adjtime, if it is root, then no problem in
/var/lib/misc, if it some user/group, then a separate directory is more proper
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-04 23:51:35 UTC
have other distros moved it?
Comment 4 Peter S. Mazinger 2006-10-05 00:22:49 UTC
havent checked, but if you want to keep it compatible, move it to /var/...
and symlink to /etc/
Comment 5 SpanKY gentoo-dev 2006-10-05 18:52:56 UTC
which doesnt work at all for people who have /var on a sep partition

ive made it a config option in /etc/conf.d/clock and it defaults to /etc/adjtime
Comment 6 Peter S. Mazinger 2006-10-05 21:43:45 UTC
why shouldnt work a symbolic link over another partition?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-06 01:19:43 UTC
vapier: peter has a point here, in that /etc/init.d/clock does only run after localmount, so /var is available.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-10-06 02:01:29 UTC
(In reply to comment #7)
> vapier: peter has a point here, in that /etc/init.d/clock does only run after
> localmount, so /var is available.

People that want an encrypted swap want clock to start before localmount, so the value should be configurable. As to the default, I personally don't care one way or the other.