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

Native systemd support #134

Merged
merged 1 commit into from
Oct 30, 2022
Merged

Native systemd support #134

merged 1 commit into from
Oct 30, 2022

Conversation

K900
Copy link
Contributor

@K900 K900 commented Sep 23, 2022

@K900 K900 marked this pull request as draft September 23, 2022 19:20
@K900
Copy link
Contributor Author

K900 commented Sep 23, 2022

Workaround for user sessions: sudo loginctl enable-linger $USER

@K900
Copy link
Contributor Author

K900 commented Sep 23, 2022

See also: microsoft/WSL#8842

@nzbr
Copy link
Member

nzbr commented Sep 24, 2022

For logging, you could use something like

.../activate |& logger --socket-errors=off -st activate 2>/dev/kmsg

to make the log output appear in dmesg
Systemd can be started with --log-target=kmsg to achieve that as well (though I haven't tested that)

EDIT: logger is from inetutils. It isn't necessarily needed here (it would normally log to journald), but it takes care of the formatting

@K900 K900 force-pushed the native-systemd branch 12 times, most recently from 9e46286 to e1aaebf Compare September 28, 2022 08:03
@K900 K900 force-pushed the native-systemd branch 13 times, most recently from 9b018b5 to ac0c038 Compare October 5, 2022 17:07
@K900 K900 force-pushed the native-systemd branch 16 times, most recently from c964d2e to 158f35a Compare October 5, 2022 18:36
@nzbr nzbr added the enhancement New feature or request label Oct 16, 2022
@K900 K900 changed the title feat: native systemd support wip feat: native systemd support Oct 30, 2022
@K900 K900 marked this pull request as ready for review October 30, 2022 12:20
@nzbr nzbr merged commit 8e3a9c1 into nix-community:main Oct 30, 2022
psvo added a commit to psvo/NixOS-WSL that referenced this pull request Nov 21, 2022
* upstream/main:
  Fix syschdemd exit code (nix-community#140)
  update remaining references to wsl.automountPath (nix-community#158)
  Update flakes (nix-community#124)
  wsl.conf: proper option types (nix-community#153)
  Fix eval by disabling module completely when wsl.enable = false (nix-community#151)
  NixOS users.users.<user> attribute name and .name can differ (nix-community#147)
  switch nixpkgs.overlays to inline overlay (nix-community#150)
  feat: native systemd support (nix-community#134)
  remove boot.isContainer (nix-community#145)
  Do not import minimal profile by default (nix-community#144)
@nzbr nzbr changed the title feat: native systemd support Native systemd support Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants