View previous topic :: View next topic |
Author |
Message |
cogman n00b
Joined: 02 Oct 2024 Posts: 2
|
Posted: Wed Oct 02, 2024 7:31 pm Post subject: [solved] WSL dbus issues |
|
|
I'm trying to use Gentoo in WSL2 and dbus is giving me a huge headache. I need it to run podman or docker.
Here's where I'm at.
I'm on a stage3 with systemd. I've unmasked the latest version of systemd (256.11 or whatever) and am currently on the latest version. I have and intend to use WSLg.
In my wsl.conf here's my settings
Code: | [boot]
systemd=true
[user]
default=cogman
[automount]
enabled=true
root=/mnt/
options="metadata,uid=1000,gid=1000,umask=077,fmask=11,case=off"
mountFsTab=true
[network]
generateHosts=true
generateResolvConf=true
[interop]
enabled=true
appendWindowsPath=true |
Here's my windows .wslconfig[/code]
Code: | [wsl2]
memory=16GB
kernelCommandLine=cgroup_no_v1=all
localhostforwarding=true
[experimental]
autoMemoryReclaim=gradual |
When I try to do something like `systemctl start docker.service` It simply hangs on `/usr/bin/systemd-tty-ask-password-agent --watch`
When I try to use `systemctl --user blah`. It fails with "Failed to connect to bus: No such file or directory"
I've tried creating a dbus and enabling it, but same problem as above waiting on the ask-password-agent. Even just running it manually just breaks stuff.
I'm pulling my hair out with this because I previously had it working and I don't know what magic incantation I did to make it work.
In ubuntu, I was able to fix the dbus and everything by installing the `dbus-user-session` package which doesn't appear to have an equivalent in gentoo.
Any help would be greatly appreciated.
Last edited by cogman on Wed Oct 02, 2024 9:18 pm; edited 1 time in total |
|
Back to top |
|
|
cogman n00b
Joined: 02 Oct 2024 Posts: 2
|
Posted: Wed Oct 02, 2024 9:18 pm Post subject: |
|
|
Answering my own question, it was the systemd-firstboot.service that messed everything up!
`systemctl disable systemd-firstboot.service` fixed everything |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|