Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170733 - zoneinfo should be symlinked, not copied
Summary: zoneinfo should be symlinked, not copied
Status: RESOLVED DUPLICATE of bug 170591
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-13 14:04 UTC by danl
Modified: 2007-03-13 15:36 UTC (History)
0 users

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 danl 2007-03-13 14:04:01 UTC
"copy it to /etc/localtime."

should be

"symlink it to /etc/localtime."

and 

# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# cp /usr/share/zoneinfo/GMT /etc/localtime

should be

# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# ln -s /usr/share/zoneinfo/GMT /etc/localtime


this is better practice (1. if zoneinfo ever changes, 2. so that it is easy to see where /etc/localtime has 'come from', 3. data duplication is wrong)

Reproducible: Always
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2007-03-13 14:18:11 UTC
(In reply to comment #0)
> this is better practice (1. if zoneinfo ever changes, 2. so that it is easy to
> see where /etc/localtime has 'come from', 3. data duplication is wrong)

Point 1. has been fixed, 2. is still valid
It used to symlink and it's already been discussed:
See bugs #110038 #143296 #127899 #170652

FWIW, I prefer symlinking as well. If /usr can't be mounted, I have more important problems than not seing my local time.

Thanks.

*** This bug has been marked as a duplicate of bug 170591 ***
Comment 2 Arthur Hagen 2007-03-13 15:36:08 UTC
(In reply to comment #1)
> 
> FWIW, I prefer symlinking as well. If /usr can't be mounted, I have more
> important problems than not seing my local time.

However, /usr/share is often an NFS mount (thus the name "share"), and not available at the time services that need /etc/localtime starts.  That's not a problem, unless people start to use symlinks without thinking through the consequences.

> *** This bug has been marked as a duplicate of bug 170591 ***

No, it's not a dupe of this bug.  That bug is for documenting TIMEZONE in /etc/conf.d/clock.