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] failed to bind mount to /etc/localtime Error: An error occurred - distrobox init #1435

Closed
morrolinux opened this issue Jun 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@morrolinux
Copy link

Describe the bug

Arch linux host with ZFS root filesystem.
Creating any debian-based container fails with the error:
Warning: failed to bind mount /run/host/usr/share/zoneinfo/Europe/Rome to /etc/localtime Error: An error occurred:

+ mount --rbind -o ro /run/host/usr/share/zoneinfo/Europe/Rome /etc/localtime
mount: /etc/localtime: filesystem was mounted, but any subsequent operation failed: Unknown error 5005.
+ printf Warning: failed to bind mount %s to %s\n /run/host/usr/share/zoneinfo/Europe/Rome /etc/localtime
Warning: failed to bind mount /run/host/usr/share/zoneinfo/Europe/Rome to /etc/localtime
+ return 1
+ [ 1 -ne 0 ]
+ printf Error: An error occurred\n
Error: An error occurred
DEBU[0000] Called logs.PersistentPostRunE(podman --log-level debug logs debian-bullseye) 
DEBU[0000] Shutting down engines                        

RHEL-based images like fedora work just fine.

To Reproduce

  • Create a debian-based or ubuntu-based container on Archlinux with ZFS (not sure if ZFS is relevant here)
  • Run distrobox enter ... for the first time.

Expected behavior
To initialize the container without errors.

Logs
distrobox.log
podman.log

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod?
    • podman
  • Which version or podman, docker or lilipod?
    • 5.0.3
  • Which version of distrobox?
    • 1.7.2.1
  • Which host distribution?
    • Arch linux
  • How did you install distrobox?
    • extra/distrobox (arch repo)

Additional context
Add any other context about the problem here.

@morrolinux morrolinux added the bug Something isn't working label Jun 11, 2024
@89luca89
Copy link
Owner

This has probably something to do with ZFS setup, anyway I've added a fallback+warning in these cases, where we go back to simply copying the file instead

89luca89 added a commit that referenced this issue Jun 19, 2024
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
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