Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
Creating a new image.
* What exactly did you do (or not do) that was effective (or
ineffective)?
sudo xen-create-image --hostname=ubuntuxentest3 --memory=4096mb --lvm=v --dist=jammy --pygrub --size=4G --noswap --dhcp
* What was the outcome of this action?
Before the action, on the host system (NOT the guest image created by xen-create-image):
$ ls -l /usr/share/zoneinfo/Etc/UTC
-rw-r--r-- 1 root root 114 Nov 23 09:04 /usr/share/zoneinfo/Etc/UTC
$ md5sum /usr/share/zoneinfo/Etc/UTC /usr/share/zoneinfo/America/New_York
38bb24ba4d742dd6f50c1cba29cd966a /usr/share/zoneinfo/Etc/UTC
1ef5d280a7e0c1d820d05205b042cce0 /usr/share/zoneinfo/America/New_York
After the action:
$ ls -l /usr/share/zoneinfo/Etc/UTC
-rw-r--r-- 1 root root 3552 Jan 7 20:37 /usr/share/zoneinfo/Etc/UTC
$ md5sum /usr/share/zoneinfo/Etc/UTC /usr/share/zoneinfo/America/New_York
1ef5d280a7e0c1d820d05205b042cce0 /usr/share/zoneinfo/Etc/UTC
1ef5d280a7e0c1d820d05205b042cce0 /usr/share/zoneinfo/America/New_York
$ debsums -s tzdata
debsums: changed file /usr/share/zoneinfo/Etc/UTC (from tzdata package)
Ultimately, this causes time and date for the UTC time zone to be incorrect:
$ TZ=UTC date
* What outcome did you expect instead?
xen-create-image should not overwrite /usr/share/zoneinfo/Etc/UTC with
a copy of the time zone file of the host.
*** End of the template - remove these template lines ***