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 <behlendorf1@llnl.gov>
This commit is contained in:
parent
adcd70bd1a
commit
09559cdd15
|
@ -272,14 +272,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ -f /boot/System.map-%{kver} ]; then
|
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
|
else
|
||||||
depmod -ae %{kver} || exit 0
|
/sbin/depmod -a || exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ -f /boot/System.map-%{kver} ]; then
|
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
|
else
|
||||||
depmod -ae %{kver} || exit 0
|
/sbin/depmod -a || exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue