Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Is there a way to undo this? #87

Open
abalter opened this issue Oct 4, 2022 · 2 comments
Open

Is there a way to undo this? #87

abalter opened this issue Oct 4, 2022 · 2 comments

Comments

@abalter
Copy link

abalter commented Oct 4, 2022

I don't need systemd to run anymore, and I'm occasionally running into problems at boot. How do I undo the changes this script makes?

@apos
Copy link

apos commented Oct 14, 2022

I updated wslg on latest (!!!) Windows 11 with the new systemd support (check first!):

In Powershell !

wsl --shutdown
wsl --update

# there should be a message, that an update occured, if not you are on the old version
# Check:
wsl --version
WSL-Version: 0.70.0.0
Kernelversion: 5.15.68.1
WSLg-Version: 1.0.45
MSRDC-Version: 1.2.3575
Direct3D-Version: 1.606.4
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.22621.674

I used the uninstall script.

In Ubuntu ! See: #43

Then in Powershell !
wsl --shutdown

After that I had to enable systemd in wsl.conf::

In Ubuntu !

sudo -e /etc/wsl.conf
[boot]
systemd=true

In Powershell !
wsl --shutdown
Systemd than run for 100% CPU, which I could fix with
systemd running with 100% and does not respond : microsoft/WSL#8867

In Ubuntu !
sudo ln -s /dev/null /etc/systemd/system/acpid.service
sudo ln -s /dev/null /etc/systemd/system/acpid.path

In Powershell !
wsl --shutdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants