WSL で systemctl エラー

現象

WSL で systemctl を使用した際に下記のエラー。

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

回避策

/etc/wsl.conf に下記を記述。

[boot]
systemd=true

WSL を再起動

wsl --shutdown
wsl