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

Use bind mount for /tmp/.X11-unix for better compatibility. #8411

Closed
dingdang66686 opened this issue Apr 15, 2022 · 2 comments
Closed

Use bind mount for /tmp/.X11-unix for better compatibility. #8411

dingdang66686 opened this issue Apr 15, 2022 · 2 comments

Comments

@dingdang66686
Copy link

Is your feature request related to a problem? Please describe.
Some programs (Eg. snaps, flatpaks) need to remount it in the chroot environment. But symbolic link can't be remounted.

Describe the solution you'd like
Make it a bind mount instead of a symbolic link.

Describe alternatives you've considered
None.

@benhillis benhillis transferred this issue from microsoft/wslg May 13, 2022
@benhillis
Copy link
Member

Good suggestion, I've made this change and it will be available in the future version of WSL.

@Chicken-Bones
Copy link

Has this fix been released? Encountered this issue with WSL and Steam today.

WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60

Error:

bwrap: Can't mount tmpfs on /newroot/tmp/.X11-unix: No such file or directory

Workaround (no idea if this is the correct way to do it):

sudo rm /tmp/.X11-unix
mkdir /tmp/.X11-unix
sudo mount --bind /mnt/wslg/.X11-unix /tmp/.X11-unix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants