Making /etc/localtime a symlink?

Jakub Jelinek jakub at redhat.com
Tue Apr 4 13:33:45 UTC 2006


On Tue, Apr 04, 2006 at 03:26:23PM +0200, Nils Philippsen wrote:
> > So imho this would involve bundling /etc/localtime as a symlink in
> > glibc, a dep to tzdata (there is a dep from glibc-common to tzdata) and
> > adjusting installer etc. to not make copies but create symlinks.
> > 
> > What do others think?
> 
> I think it would be better if tzdata would copy the updated localtime
> file from /usr/share/zoneinfo/... (via %post) when upgrading depending
> on ZONE in /etc/sysconfig/clock. To allow custom timezones (real
> customized tz files or timezones the config tools don't know about) I
> propose to use ZONE=custom upon which neither tzdata nor
> system-config-date would touch /etc/localtime. Petr, what do you think?

tzdata can't do that, since:
a) it is a *.noarch.rpm package
b) it can't rely on bash and coreutils being installed for its %post,
   that would be a fatal dependency loop

But, glibc-common since ~ September 2005 does that in its

%triggerin common -p /usr/sbin/tzdata-update -- tzdata

	Jakub




More information about the fedora-devel-list mailing list