Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd support overrides the user's choice of default target #8844

Closed
1 of 2 tasks
cerebrate opened this issue Sep 22, 2022 · 3 comments
Closed
1 of 2 tasks

systemd support overrides the user's choice of default target #8844

cerebrate opened this issue Sep 22, 2022 · 3 comments

Comments

@cerebrate
Copy link

Version

Microsoft Windows [Version 10.0.22000.856]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.62.1-20220921-1-microsoft-custom-WSL2+

Distro Version

Debian bookworm/sid

Other Software

No response

Repro Steps

  1. Start WSL with systemd support enabled.

Expected Behavior

Upon starting up, systemd should activate the units required by the currently configured default target, as displayed by systemctl get-default. On this system at this time, that is multi-user.target .

Actual Behavior

Systemd starts up and activates the units required by graphical.target . Upon investigation, this appears to be a result of the command line argument passed to systemd, as seen here:

USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.3  0.1 168856 13104 ?        Ss   00:57   0:01 /lib/systemd/systemd --unit=graphical.target

Specifying a target in this way significantly limits the users' ability to customize systemd behavior.

Diagnostic Logs

No response

@cerebrate
Copy link
Author

Another thought - the reason I switched my default to multi-user.target in the first place was to avoid, with certain packages installed, graphical.target from trying to start up window managers, graphical login screens, and other such things unlikely to play well in the WSL scenario.

@benhillis
Copy link
Member

@cerebrate - you're absolutely right, will fix this pronto.

@cerebrate
Copy link
Author

Fixed in 68.2, so guess I can close this now. Shiny!

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

No branches or pull requests

2 participants