diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2019-05-12 14:22:11 +0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-05-13 15:35:51 +0200 |
commit | a45ef5070d5875d70e39fc430e82eb26c221ded5 (patch) | |
tree | 25e9380a8ecfad6d9eaa139b0cbf4261d38b4cbf /tmpfiles.d | |
parent | ccc162e03c9608b53577bc2155111891ed6fc012 (diff) | |
download | systemd-a45ef5070d5875d70e39fc430e82eb26c221ded5.tar.gz |
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.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r-- | tmpfiles.d/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
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'], |