Bug 24090 - /etc/localtime sollte kein Symlink sein
/etc/localtime sollte kein Symlink sein
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Philipp Hahn
Janek Walkenhorst
: interim-3
Depends on:
  Show dependency treegraph
Reported: 2011-10-18 11:12 CEST by Philipp Hahn
Modified: 2017-07-26 14:59 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-10-18 11:12:19 CEST
/etc/localtime sollte kein Symlink sein, der auf /usr/share/zoneinfo/... verweist, da dies ggf. auf einer anderen Partition liegt, die zum Boot-Zeitpunkt noch nicht verfügbar ist. Siehe auch <http://www.redhat.com/archives/rhl-devel-list/2006-April/msg00017.html>

Statt dessen sollte die Datei kopiert werden.
In /etc/timezone steht der Name, so daß nach einem Update von "tzdata" ggf. aktualisierte TZ-Daten erneut nach /etc/localtime kopiert werden kann. Vgl. "dpkg-reconfigure tzdata" bzw. /var/lib/dpkg/info/tzdata.postinst

$ gfind -n /etc/localtime
./univention-installer/scripts/28_postconfigure_config_registry.sh:274:ln -sf /usr/share/zoneinfo/$timezone /etc/localtime
./univention-system-setup/usr/lib/univention-system-setup/scripts/timezone/10timezone:54:ln -sf /usr/share/zoneinfo/$timezone /etc/localtime
./univention-debootstrap/usr/share/debootstrap-ucs3/scripts/ucs3:109:   if [ ! -e "$TARGET/etc/localtime" ]; then
./univention-debootstrap/usr/share/debootstrap-ucs3/scripts/ucs3:110:           ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
Comment 1 Stefan Gohmann univentionstaff 2016-04-25 07:52:58 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
Comment 2 Philipp Hahn univentionstaff 2017-03-09 11:29:24 CET
r77496 | Bug #24090 USS: Fix /etc/localtime

Package: univention-system-setup
Version: 10.0.7-23A~
Branch: ucs_4.2-0

QA: [ -L /etc/localtime ] && fail
Comment 3 Janek Walkenhorst univentionstaff 2017-03-10 17:22:18 CET
(In reply to Philipp Hahn from comment #2)
> r77496 | Bug #24090 USS: Fix /etc/localtime
> QA: [ -L /etc/localtime ] && fail
Comment 4 Stefan Gohmann univentionstaff 2017-04-04 18:29:07 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".