anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0158-units-explicitly-order-systemd-user-sessions.service.patch

923a60
From d7087b71c5b31bae35cb32a4b87e83d578a2d694 Mon Sep 17 00:00:00 2001
923a60
From: Lennart Poettering <lennart@poettering.net>
923a60
Date: Fri, 3 Apr 2015 14:31:35 +0200
923a60
Subject: [PATCH] units: explicitly order systemd-user-sessions.service after
923a60
 nss-user-lookup.target
923a60
923a60
We should not allow logins before NIS/LDAP users are available.
923a60
923a60
(cherry picked from commit efb3e19be9c568974b221990b9e84fb5304c5537)
923a60
923a60
Cherry-picked from: 6446de5
923a60
Resolves: #1222517
923a60
---
923a60
 units/systemd-user-sessions.service.in | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/units/systemd-user-sessions.service.in b/units/systemd-user-sessions.service.in
923a60
index 0869e73991..c09c05d4d5 100644
923a60
--- a/units/systemd-user-sessions.service.in
923a60
+++ b/units/systemd-user-sessions.service.in
923a60
@@ -8,7 +8,7 @@
923a60
 [Unit]
923a60
 Description=Permit User Sessions
923a60
 Documentation=man:systemd-user-sessions.service(8)
923a60
-After=remote-fs.target
923a60
+After=remote-fs.target nss-user-lookup.target
923a60
 
923a60
 [Service]
923a60
 Type=oneshot