diff --git a/zfs.spec.in b/zfs.spec.in index 3a57fd877..cba98af1d 100644 --- a/zfs.spec.in +++ b/zfs.spec.in @@ -100,5 +100,5 @@ rm -rf $RPM_BUILD_ROOT exit 0 %preun -[ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs +[ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs exit 0