Time mismatch in /etc/localtime and /etc/timezone

Python3-pip installs the dependent package tzdata
and blocks the mount of the /etc/localtime file in docker.

After deleting the symbolic link docker correctly mounts
the external localtime file.
Applies only to ubuntu 24.04, in previous versions
of ubuntu there was no such problem

Closes-Bug: #2091161
Change-Id: I733a50b5ca455cfa4b248dc324500d78c17c817b
This commit is contained in:
Piotr Milewski 2024-12-06 15:57:40 +01:00 committed by Michal Nasiadka
parent 681cb1b26d
commit 2d8e98ec7b
2 changed files with 9 additions and 1 deletions

View File

@ -323,7 +323,9 @@ RUN apt-get --error-on=any update \
&& locale-gen "$LANG" \
&& apt-get -y upgrade \
&& apt-get -y dist-upgrade \
&& {{ macros.install_packages(base_apt_packages | customizable('apt_packages'), True) }}
&& {{ macros.install_packages(base_apt_packages | customizable('apt_packages'), True) }} \
# NOTE: python3-pip installs dependent tzdata package and blocks mount in docker - 2091161
&& unlink /etc/localtime
{% endblock %}

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Python3-pip installs the dependent package tzdata and
blocks the mount of the /etc/localtime file in docker.
`LP#2091161 <https://launchpad.net/bugs/2081149>`__