Skip to content

nixos/systemd: readd dbus-org.freedesktop.login1.service to upstreamS… - #146964

Merged
Artturin merged 1 commit into
NixOS:masterfrom
Artturin:systemdreadd
Nov 22, 2021
Merged

Artturin merged 1 commit into
NixOS:masterfrom
Artturin:systemdreadd

Conversation

@Artturin

@Artturin Artturin commented Nov 22, 2021 •

Copy link
Copy Markdown
Member

…ystemUnits

it was removed in
eb862c4#diff-5ea4693beb4bdd8f7efcdd3204ceea67c86f59b3d1c28cde063ddf03e1d20fbfL66

without this change i get
Failed to list users: Unit dbus-org.freedesktop.login1.service not found.
when i update and rebuild

this seems just like an alias for systemd-logind.service so not sure why systemd requires this
its listed at https://github.com/systemd/systemd/blob/0895e87348e5fc02f50498cad5922eb3eb172323/units/meson.build#L215
EDIT: systemd uses these to start services via dbus

Tested by adding systemd.additionalUpstreamSystemUnits = [ "dbus-org.freedesktop.login1.service" ]; to my config

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

…ystemUnits

it was removed in
NixOS@eb862c4#diff-5ea4693beb4bdd8f7efcdd3204ceea67c86f59b3d1c28cde063ddf03e1d20fbfL66

without this change i get
Failed to list users: Unit dbus-org.freedesktop.login1.service not found.
when i update and rebuild
@Artturin
Artturin requested a review from dasJ as a code owner November 22, 2021 04:02
@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 22, 2021
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 22, 2021
@Artturin

Copy link
Copy Markdown
Member Author

btw

systemctl list-unit-files | grep dbus
dbus-org.freedesktop.hostname1.service      alias           -
dbus-org.freedesktop.import1.service        alias           -
dbus-org.freedesktop.locale1.service        alias           -
dbus-org.freedesktop.login1.service         alias           -
dbus-org.freedesktop.machine1.service       alias           -
dbus-org.freedesktop.ModemManager1.service  alias           -
dbus-org.freedesktop.NetworkManager.service alias           -
dbus-org.freedesktop.nm-dispatcher.service  alias           -
dbus-org.freedesktop.timedate1.service      alias           -
dbus-org.freedesktop.timesync1.service      alias           -

systemctl lists dbus-org. services as aliases

@Artturin
Artturin merged commit 859f761 into NixOS:master Nov 22, 2021
@Artturin
Artturin deleted the systemdreadd branch November 22, 2021 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants