Distrobox stopped working a few days ago (worked on 2025-05-27) and I think it’s due to an issue with Podman. Running podman with a specific command yields the same problem:
The issue does not appear for new containers created with Distrobox because it does not try to mount the volume /sys/fs/selinuxsince the folder on the host does not exist (??? I don’t get it). By the way, I’m on stable channel.
I just booted into the older generation where the problem is not present, and I can confirm that the folder /sys/fs/selinux exists, so the problem is that in newer generations for some reason it disappeared, even though I did not touch any SELinux settings (never used it). The only solution I can think of is recreating the container without this folder, so Distrobox does not try to mount that volume. I also tried --security-opt unmask=ALL but it did not work.
I don’t recommend the first one due to it being very WIP and shouldn’t be used yet. The other two are the best possible. Though I recommend disabling SELinux in Distrobox because we don’t support SELinux without the SELinux NixOS module that isn’t ready yet.
I don’t think you can. When you first create the container with distrobox, it checks whether the folder /sys/fs/selinux exists and if it does it adds the volume /sys/fs/selinux. As far as I know you can’t change existing containers’ volumes, so you are forced to create it from scratch. Since the folder does not exist anymore, distrobox will not try to mount that volume on new containers. That’s what I’ve personally done but you could try the other solutions proposed here.
Yes it does, but maybe it’s something to consider for distrobox to change. See the discrepancy between the distrobox workaround and the coretoolbox/toolbx workaround for the same podman bug:
Maybe they are all functionally equivalent though, I am not very informed on container runtime internals… I think it makes sense to ask upstream to make it --tmpfs /sys/fs/selinux or similar.
Thank you so much! This line is the exact line I need to make distrobox works again. I almost thought I needed to recreate the containers from scratch. Thanks again!