package/systemd: add optional support for sysusers
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:02 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:27:47 +0000 (12:27 +0200)
Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
package/systemd/systemd.mk

index df1a428940229f48f3a800fe1b86e549814d42a4..20b4e28068d028079ab9ee4b7832ac8e1c36edd8 100644 (file)
@@ -142,6 +142,14 @@ config BR2_PACKAGE_SYSTEMD_TMPFILES
 
          http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html
 
+config BR2_PACKAGE_SYSTEMD_SYSUSERS
+       bool "enable sysusers support"
+       help
+         systemd-sysusers creates system users and groups, based on
+         the file format and location specified in sysusers.d(5).
+
+         http://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
+
 config BR2_PACKAGE_SYSTEMD_NETWORKD
        bool "enable network manager"
        help
index 779d7c51e132fa9bc8b20fd2519be7e880e23b9b..0520ced4c6594cb1945dafe757be22a3fa22ba90 100644 (file)
@@ -165,6 +165,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-tmpfiles
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUSERS),y)
+SYSTEMD_CONF_OPTS += --enable-sysusers
+else
+SYSTEMD_CONF_OPTS += --disable-sysusers
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK