aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-11-10 10:36:21 -0800
committerBrian Behlendorf <[email protected]>2011-11-10 10:36:30 -0800
commit948914d2f10f6bf274bb51b96dd5337f01165b45 (patch)
tree032ac54430a32e91dffe49ad875df891967655a3
parentfe71c0e5677d35cbdb3a6bf0a81c71d12a2aff4a (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]>
-rw-r--r--spl-modules.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/spl-modules.spec.in b/spl-modules.spec.in
index 9c6320171..7e01b2ce2 100644
--- a/spl-modules.spec.in
+++ b/spl-modules.spec.in
@@ -234,14 +234,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