summaryrefslogtreecommitdiffstats
path: root/zfs-modules.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-11-10 10:22:39 -0800
committerBrian Behlendorf <[email protected]>2011-11-10 10:26:06 -0800
commit09559cdd150fa0b610dd4f816292fd90f50fd0cb (patch)
tree8986c24aa01212eea365ca83824dd30f224610a7 /zfs-modules.spec.in
parentadcd70bd1af405464d6dbc6b2057594cddda7a24 (diff)
Fix depmod warning
The depmod utility from module-init-tools 3.12-pre3 generates a warning when the -e option is used without -E or -F. This was observed under OpenSuse 11.4. To resolve the issue when the exact System.map-* for your kernel cannot be found fallback to a generic safe '/sbin/depmod -a'. WARNING: -e needs -E or -F Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'zfs-modules.spec.in')
-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