package/systemd: create "remote" user if the feature is enabled
authorNorbert Lange <nolange79@gmail.com>
Mon, 15 Jun 2020 07:20:43 +0000 (09:20 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 15 Jun 2020 09:43:50 +0000 (11:43 +0200)
Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/systemd/systemd.mk

index 141209897d55c583666d347fb87eafef3c3a561e..f627ce6cd8b575f2d718be099dfd288ca06e4de6 100644 (file)
@@ -214,6 +214,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE),y)
 SYSTEMD_CONF_OPTS += -Dremote=true
+SYSTEMD_REMOTE_USER = systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote
 else
 SYSTEMD_CONF_OPTS += -Dremote=false
 endif
@@ -486,7 +487,7 @@ define SYSTEMD_USERS
        - - systemd-journal -1 * - - - Journal
        - - render -1 * - - - DRI rendering nodes
        - - kvm -1 * - - - kvm nodes
-       systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote
+       $(SYSTEMD_REMOTE_USER)
        $(SYSTEMD_COREDUMP_USER)
        $(SYSTEMD_NETWORKD_USER)
        $(SYSTEMD_RESOLVED_USER)