summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zfs-modules.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in
index 3fc626980..c1c135649 100644
--- a/zfs-modules.spec.in
+++ b/zfs-modules.spec.in
@@ -272,14 +272,14 @@ rm -rf $RPM_BUILD_ROOT
%post
if [ -f /boot/System.map-%{kver} ]; then
- depmod -ae -F /boot/System.map-%{kver} %{kver} || exit 0
+ /sbin/depmod -ae -F /boot/System.map-%{kver} %{kver} || exit 0
else
- depmod -ae %{kver} || exit 0
+ /sbin/depmod -a || exit 0
fi
%postun
if [ -f /boot/System.map-%{kver} ]; then
- depmod -ae -F /boot/System.map-%{kver} %{kver} || exit 0
+ /sbin/depmod -ae -F /boot/System.map-%{kver} %{kver} || exit 0
else
- depmod -ae %{kver} || exit 0
+ /sbin/depmod -a || exit 0
fi