Closed nerditation closed 12 months ago
since wsl2 now has built in support for systemd, I'll close this issue.
just for the reference, it turns out opensuse by default doesn't have a /sbin/init
symlink, which should point to /usr/lib/systemd/systemd
. but distrod
assumes /sbin/init
always exists so it panics.
if I manually create the symlink, it will work fine. alternatively, zypper install wsl_systemd
would also solve the crash, because the package wsl_systemd
actually creates the symlink (and contains a /etc/wsl.conf
config file to enable the built in systemd support).
Describe the bug
I tried to enable distrod in an newly installed opensuse tumbleweed wsl instance, but I got this error, so I disabled distrod and try to troubleshoot following instructions in #9, I got the same error after many attempt, even when I try to execute the simplest command I can think of:
Steps to reproduce
install opensuse-tumbleweed, from https://aka.ms/wsl-opensuse-tumbleweed install distrod sudo /opt/distrod/bin/distrod enable restart wsl instance
Expected behavior
open login shell
Windows version
windows 10 22H2 (OS build 19045.2965)
Linux kernel version
Linux LAPTOP 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Distro
opensuse-tumbleweed
How did you install that distro?
Enabled
distrod
in an existing WSL2 distroLogs
additional comment
I enabled distrod in another debian-stable wsl instance and it works fine. I don't know what's the difference between the distros and how to fix it.