aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/generic')
-rw-r--r--rpm/generic/zfs.spec.in19
1 files changed, 14 insertions, 5 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index c9bf36e62..04b0033f6 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -229,7 +229,12 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \;
%if 0%{?_systemd}
%systemd_post zfs.target
%else
-[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
+if [ -x /sbin/chkconfig ]; then
+ /sbin/chkconfig --add zfs-import
+ /sbin/chkconfig --add zfs-mount
+ /sbin/chkconfig --add zfs-share
+ /sbin/chkconfig --add zfs-zed
+fi
%endif
exit 0
@@ -237,8 +242,11 @@ exit 0
%if 0%{?_systemd}
%systemd_preun zfs.target
%else
-if [ $1 -eq 0 ] ; then
- [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
+if [ $1 -eq 0 ] && [ -x /sbin/chkconfig ]; then
+ /sbin/chkconfig --del zfs-import
+ /sbin/chkconfig --del zfs-mount
+ /sbin/chkconfig --del zfs-share
+ /sbin/chkconfig --del zfs-zed
fi
%endif
exit 0
@@ -258,14 +266,15 @@ exit 0
%{_udevdir}/vdev_id
%{_udevdir}/zvol_id
%{_udevdir}/rules.d/*
-%config(noreplace) %{_sysconfdir}/%{name}
%if 0%{?_systemd}
/usr/lib/modules-load.d/*
%{_unitdir}/*
%{_presetdir}/*
%else
-%{_sysconfdir}/init.d/*
+%config(noreplace) %{_sysconfdir}/init.d/*
+%config(noreplace) %{_initconfdir}/zfs
%endif
+%config(noreplace) %{_sysconfdir}/%{name}
%files -n libzpool2
%{_libdir}/libzpool.so.*