feat: Generate `/etc/timezone` file in the container if the host does not have `/etc/timezone`
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 368
Description
### Main idea
Generate `/etc/timezone` file in the container if the host does not have `/etc/timezone` .
It's related Issue https://github.com/lablup/backend.ai/issues/2300 & PR https://github.com/lablup/backend.ai/pull/2503 .
On some RPM-based Linux distributions(e.g. CentOS, Fedora, Rocky, AlmaLinux, Oracle, openSUSE), the `/etc/timezone` file is not exist by default. However, These include `/etc/localtime` file.
When running a container on such hosts, the `/etc/timezone` file should not be mounted from the host.
Instead, the container should generate the `/etc/timezone` file during initialization using `/etc/localtime` file.
### Alternative ideas
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.