summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--src/core/macros.systemd.in14
-rw-r--r--units/systemd-sysusers.service.in2
3 files changed, 16 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2ceee2a997..8af619cc8f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1782,7 +1782,7 @@ systemd_sysusers_LDADD = \
libsystemd-internal.la \
libsystemd-shared.la
-rootlibexec_PROGRAMS += \
+rootbin_PROGRAMS += \
systemd-sysusers
nodist_systemunit_DATA += \
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
index 167016a85a..0d5f8949ab 100644
--- a/src/core/macros.systemd.in
+++ b/src/core/macros.systemd.in
@@ -26,7 +26,9 @@
%_udevrulesdir @udevrulesdir@
%_journalcatalogdir @catalogdir@
%_tmpfilesdir @tmpfilesdir@
+%_sysusersdir @sysusersdir@
%_sysctldir @sysctldir@
+%_binfmtdir @binfmtdir@
%systemd_requires \
Requires(post): systemd \
@@ -76,3 +78,15 @@ journalctl --update-catalog >/dev/null 2>&1 || : \
%tmpfiles_create() \
systemd-tmpfiles --create %{?*} >/dev/null 2>&1 || : \
%{nil}
+
+%sysusers_create() \
+systemd-sysusers %{?*} >/dev/null 2>&1 || : \
+%{nil}
+
+%sysctl_apply() \
+@rootlibexecdir@/systemd-sysctl %{?*} >/dev/null 2>&1 || : \
+%{nil}
+
+%binfmt_apply() \
+@rootlibexecdir@/systemd-binfmt %{?*} >/dev/null 2>&1 || : \
+%{nil}
diff --git a/units/systemd-sysusers.service.in b/units/systemd-sysusers.service.in
index e123f398a4..a4c7714155 100644
--- a/units/systemd-sysusers.service.in
+++ b/units/systemd-sysusers.service.in
@@ -19,4 +19,4 @@ ConditionNeedsUpdate=/etc
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=@rootlibexecdir@/systemd-sysusers
+ExecStart=@rootbindir@/systemd-sysusers