You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using distrobox 1.7.2.1 on an OpenSuSE Tumbleweed 20240830 host, the host timezone doesn't get copied to an Ubuntu 20.04.6 LTS container when it is created with --additional-packages systemd --init. Omitting those distrobox create flags results in a correct timezone in the guest, but the timezone cannot be changed with sudo timedatectl set-timezone Australia/Adelaide due to timedatectl being dependent on systemd.
Edited to add:
I think that distrobox is setting up /etc/timezone and /etc/localtime before systemd starts whatever service is responsible for populating them when I do --init.
To Reproduce
Create and enter:
$ distrobox create -i ubuntu:20.04 --name test --hostname test --root \
--volume /:/media/root:rw --additional-packages systemd --init
$ distrobox enter --root test
Guest time and zone:
$ date
Mon 2 Sep 13:22:24 UTC 2024
Host time and zone:
$ date
Mon 2 Sep 22:52:26 ACST 2024
$ ls -la /etc/localtime /etc/timezone
lrwxrwxrwx 1 root root 38 Oct 25 2022 /etc/localtime -> /usr/share/zoneinfo/Australia/Adelaide
/etc/timezone:
total 0
drwxr-xr-x 1 root root 0 Dec 20 2022 ./
drwxr-xr-x 1 root root 5666 Sep 2 19:25 ../
Note that /etc/timezone is a directory on Tumbleweed.
Expected behavior
Same time and timezone in the guest as on the host.
Describe the bug
Using distrobox 1.7.2.1 on an OpenSuSE Tumbleweed 20240830 host, the host timezone doesn't get copied to an Ubuntu 20.04.6 LTS container when it is created with
--additional-packages systemd --init
. Omitting thosedistrobox create
flags results in a correct timezone in the guest, but the timezone cannot be changed withsudo timedatectl set-timezone Australia/Adelaide
due totimedatectl
being dependent onsystemd
.Edited to add:
I think that
distrobox
is setting up/etc/timezone
and/etc/localtime
beforesystemd
starts whatever service is responsible for populating them when I do--init
.To Reproduce
Create and enter:
Guest time and zone:
Host time and zone:
Note that
/etc/timezone
is a directory on Tumbleweed.Expected behavior
Same time and timezone in the guest as on the host.
Logs
create-logs.txt
enter-logs.txt
podman-logs.txt
Desktop (please complete the following information):
distrobox
.The text was updated successfully, but these errors were encountered: