Skip to content

Commit 2d8e98e

Browse files
vurmilmnasiadka
authored andcommitted
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
1 parent 681cb1b commit 2d8e98e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docker/base/Dockerfile.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ RUN apt-get --error-on=any update \
323323
&& locale-gen "$LANG" \
324324
&& apt-get -y upgrade \
325325
&& apt-get -y dist-upgrade \
326-
&& {{ macros.install_packages(base_apt_packages | customizable('apt_packages'), True) }}
326+
&& {{ macros.install_packages(base_apt_packages | customizable('apt_packages'), True) }} \
327+
# NOTE: python3-pip installs dependent tzdata package and blocks mount in docker - 2091161
328+
&& unlink /etc/localtime
327329

328330
{% endblock %}
329331

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Python3-pip installs the dependent package tzdata and
5+
blocks the mount of the /etc/localtime file in docker.
6+
`LP#2091161 <https://launchpad.net/bugs/2081149>`__

0 commit comments

Comments
 (0)