On 2/23/2023 1:41 PM, Travis Newton wrote:
Hello,
I’m having an issue with Windows 10, WSL, and AlmaLinux 8. WSL is at version 1.0.3.0 so what I am trying to do should work. But since it’s easy to blame Microsoft, I am going to do that for the time being. 😊
I am trying to use systemd within WSL running AlmaLinux. AlmaLinux is fully updated on 8.7. I edited /etc/wsl.conf to include [boot] and setting systemd as true. I’ve restarted WSL (and the Windows computer), and still for the life of me, I cannot get AlmaLinux to load systemd.
The fallback should be using initscripts. Obviously, RHEL (so AlmaLinux), have moved to systemd but there is an initscripts package. I installed that and even restarted WSL for good measure, but unfortunately it redirects service to systemctl and then it complains that the system was booted as init and not systemd and it can’t operate.
So my question is, has anyone either got systemd working on AlmaLinux under WSL or has anyone got initscripts working?
I’ve been Googling this like mad but all I’ve been able to find are articles regarding Ubuntu.
Thanks in advance if anyone can provide some insight!
Your /etc/wsl.conf file should have the following two lines in it, exactly as shown below: [boot] systemd=true I'm running AlmaLinux 9 in WSL and systemd is up and running. Screenshot here: https://i.imgur.com/CatAvvv.png Scott