mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
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.
This commit is contained in:
parent
ccc162e03c
commit
a45ef5070d
|
@ -4,7 +4,7 @@ enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1
|
||||||
|
|
||||||
tmpfiles = [['home.conf', ''],
|
tmpfiles = [['home.conf', ''],
|
||||||
['journal-nocow.conf', ''],
|
['journal-nocow.conf', ''],
|
||||||
['systemd-nologin.conf', ''],
|
['systemd-nologin.conf', 'HAVE_PAM'],
|
||||||
['systemd-nspawn.conf', 'ENABLE_MACHINED'],
|
['systemd-nspawn.conf', 'ENABLE_MACHINED'],
|
||||||
['systemd-tmp.conf', ''],
|
['systemd-tmp.conf', ''],
|
||||||
['portables.conf', 'ENABLE_PORTABLED'],
|
['portables.conf', 'ENABLE_PORTABLED'],
|
||||||
|
|
Loading…
Reference in a new issue