[Bug 1543025] Re: Wrong UTC zoneinfo in cloud-images
Martin Pitt
martin.pitt at ubuntu.com
Mon Feb 8 09:10:10 UTC 2016
I think the bug is here in cloudinit/distros/__init__.py:
def set_etc_timezone(tz, tz_file=None, tz_conf="/etc/timezone",
tz_local="/etc/localtime"):
util.write_file(tz_conf, str(tz).rstrip() + "\n")
# This ensures that the correct tz will be used for the system
if tz_local and tz_file:
util.copy(tz_file, tz_local)
return
/etc/localtime ought to be a symlink to the selected file in
/usr/share/zoneinfo/, not a copy (it used to in the past due to the
possibility of /usr/ being on a separate file system, but that got fixed
by initramfs-tools in a better way now). So with the copy() the symlink
doesn't get updated, and instead it clobbers the file in /usr/.
** Changed in: cloud-init (Ubuntu)
Status: New => Triaged
** Also affects: cloud-init (Ubuntu Xenial)
Importance: High
Status: Triaged
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1543025
Title:
Wrong UTC zoneinfo in cloud-images
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1543025/+subscriptions
More information about the Ubuntu-server-bugs
mailing list