Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] distrobox create fails on fresh CoreOS installation due to missing /etc/localtime #664

Closed
bsherman opened this issue Mar 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@bsherman
Copy link

bsherman commented Mar 19, 2023

distrobox create fails on fresh CoreOS installation due to missing /etc/localtime

To Reproduce

  1. Install Fedora CoreOS
  2. rpm-ostree install distrobox, and reboot
  3. distrobox create
  4. observe failure
[core@ucore-test1 ~]$ distrobox create
Creating 'my-distrobox' using image registry.fedoraproject.org/fedora-toolbox:36	Error: statfs /etc/localtime: no such file or directory
 [ ERR ]

This fails because CoreOS defaults to UTC time with no /etc/localtime symlink present. If timezone is set with timedatectl the symlink is created as would normally be expected.

Expected behavior
distrobox should create successfully, even when etc/localtime is missing.

Logs
distrobox create verbose.log

Run the commands with --verbose and post the log here as a file upload
Attach also the output of podman logs or docker logs, possibly with --latest flag

Desktop (please complete the following information):

  • podman
  • 4.4.1
  • 1.4.2.1

Additional context
This bug report prompted by discussion on this workaround commit

@bsherman bsherman added the bug Something isn't working label Mar 19, 2023
bsherman referenced this issue in ublue-os/ucore Mar 19, 2023
distrobox fails to create its containers if /etc/localtime does not
exist, which it does not, by default, on a default CoreOS system.
This doesn't a net change to default timezone, but allows distrobox
to work.
@89luca89
Copy link
Owner

@bsherman pushed a fix for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants