From 2be740ad77505d602a07f35dcc749f3127c9e21d Mon Sep 17 00:00:00 2001 From: loli10K Date: Tue, 7 Nov 2017 19:09:05 +0100 Subject: [PATCH] Fix undefined %{systemd_svcs} in RPM scriptlets This allows RPM-based systems to properly control package installation and removal when using systemd. Signed-off-by: loli10K --- rpm/generic/zfs.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 14f2929c64ff..697f5d3a18a3 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -39,7 +39,6 @@ # Generic enable switch for systemd %if %{with systemd} %define _systemd 1 -%define systemd_svcs zfs-import-cache.service zfs-import-scan.service zfs-mount.service zfs-share.service zfs-zed.service zfs.target %endif # RHEL >= 7 comes with systemd @@ -222,6 +221,7 @@ image which is ZFS aware. %endif %if 0%{?_systemd} %define systemd --enable-systemd --with-systemdunitdir=%{_unitdir} --with-systemdpresetdir=%{_presetdir} --disable-sysvinit + %define systemd_svcs zfs-import-cache.service zfs-import-scan.service zfs-mount.service zfs-share.service zfs-zed.service zfs.target %else %define systemd --enable-sysvinit --disable-systemd %endif