meson: do not create systemd-user-sessions.service if PAM is disabled
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Oct 2017 07:20:53 +0000 (16:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Oct 2017 08:12:36 +0000 (17:12 +0900)
Fixes #7227.

units/meson.build

index 4e2ae3f..5772a27 100644 (file)
@@ -208,7 +208,7 @@ in_units = [
          'multi-user.target.wants/ graphical.target.wants/ rescue.target.wants/'],
         ['systemd-update-utmp.service',          'ENABLE_UTMP',
          'sysinit.target.wants/'],
-        ['systemd-user-sessions.service',        '',
+        ['systemd-user-sessions.service',        'HAVE_PAM',
          'multi-user.target.wants/'],
         ['systemd-vconsole-setup.service',       'ENABLE_VCONSOLE'],
         ['systemd-volatile-root.service',        ''],