Skip to content

Commit

Permalink
systemd: Don't order systemd-user-sessions.service after network.target
Browse files Browse the repository at this point in the history
Revert upstream commit 8c85680
This was causing delayed logins at boot waiting on dhcpcd.
Fixes #60900
  • Loading branch information
gloaming committed Jun 18, 2019
1 parent adaf148 commit 3b0a8c6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/os-specific/linux/systemd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
sha256 = "0ldyhfxdy4qlgygvpc92wp0qp6p1c9y3rnm77zwbkga48x60d9i8";
};

patches = [ ./user-sessions-not-after-network.patch ];

outputs = [ "out" "lib" "man" "dev" ];

nativeBuildInputs =
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
index 6d585eb0a1..4c86ebc37e 100644
--- a/units/systemd-user-sessions.service.in
+++ b/units/systemd-user-sessions.service.in
@@ -10,7 +10,7 @@
[Unit]
Description=Permit User Sessions
Documentation=man:systemd-user-sessions.service(8)
-After=remote-fs.target nss-user-lookup.target network.target
+After=remote-fs.target nss-user-lookup.target

[Service]
Type=oneshot

0 comments on commit 3b0a8c6

Please sign in to comment.