-
Notifications
You must be signed in to change notification settings - Fork 325
Init /tmp/.X11-unix is overwritten by mounts #43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
As a side note for anyone using genie (<1.38) or one of the other systemd hacks - systemd-tmpfiles, which is run by default on boot, also wipes out the contents of /tmp/.X11-unix . If you're having that problem and find this issue, it's probably not WSLg's fault. |
To make it work with systemd, create
|
@eternalphane Brilliant workaround. I'm using the systemd script https://github.com/DamionGans/ubuntu-wsl2-systemd-script and this works perfectly. |
That is a valid workaround, but its not ideal as any subsequent changes or
adds to /tmp we will have to keep track of.
Same could be done on init for non-systemd.
This will likely not be fixed for systemd as it starts after init finishes,
so it might not be fixed under this issue (or in the scope of just changing
the init order). I believe fixing it for genie will require a workaround,
documentation (so we can properly mimic what is required) and ideally
actual systemd support.
…On Sat, Apr 24, 2021, 8:09 AM Amir Asyraf ***@***.***> wrote:
@eternalphane <https://github.com/eternalphane> Brilliant workaround. I'm
using the systemd script
https://github.com/DamionGans/ubuntu-wsl2-systemd-script and this works
perfectly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLS7COZAU7IHZG4CLCSVATTKJOAPANCNFSM43MYCSUQ>
.
|
@pecigonzalo The fix genie (1.39+) is actually using is the one documented by @diddledan here: https://forum.snapcraft.io/t/wsl-wslg-and-systemd-hacks/24022 That is to say, using That said, I do currently have arkane-systems/genie#157 open, which seems to suggest that the latter has some issues when there are user sessions under UIDs other than 1000 involved. Currently being looked at. |
@pecigonzalo : Thanks for reporting this. The issue has been fixed in wsl and will make its way to insider builds. |
Worked for me...as when i switched systemd my WSLg stopped working. Thanks |
Using systemd in Rocky Linux 9, I don't get this problem, but in Fedora 40 I do. @sonook 's fix works a treat for Fedora 40 to get I working, Added file, terminated WSL and then started it again, starts working no problem |
The init order seems to process the creation of
/tmp/.X11-unix
before processing/etc/fstab
. This conflicts with an tabs which set/tmp
to be atmpfs
(as is fairly common).More information in: #19 (comment)
Example
/etc/fstab
:The text was updated successfully, but these errors were encountered: