From a45ef5070d5875d70e39fc430e82eb26c221ded5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 12 May 2019 14:22:11 +0800 Subject: tmpfiles: do not create /run/nologin if PAM is disabled If systemd is not built with PAM support, systemd-user-sessions.service won't be built. On systems without PAM, /run/nologin is useless. On systems with PAM but systemd is not built with PAM, /run/nologin won't be removed and all unprivileged users can't login. So, we should not create /run/nologin if systemd is built without PAM. --- tmpfiles.d/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmpfiles.d') diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build index b94a9d0f47..f14b4fc6df 100644 --- a/tmpfiles.d/meson.build +++ b/tmpfiles.d/meson.build @@ -4,7 +4,7 @@ enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1 tmpfiles = [['home.conf', ''], ['journal-nocow.conf', ''], - ['systemd-nologin.conf', ''], + ['systemd-nologin.conf', 'HAVE_PAM'], ['systemd-nspawn.conf', 'ENABLE_MACHINED'], ['systemd-tmp.conf', ''], ['portables.conf', 'ENABLE_PORTABLED'], -- cgit v1.2.1