Blame SOURCES/redhat-rpm-config-9.1.0-fix-depmod-path.patch

76c1b9
diff -Nuar redhat-rpm-config-9.1.0_old/kmodtool redhat-rpm-config-9.1.0/kmodtool
76c1b9
--- redhat-rpm-config-9.1.0_old/kmodtool	2013-09-22 10:15:55.903436121 +0800
76c1b9
+++ redhat-rpm-config-9.1.0/kmodtool	2013-09-22 10:18:24.230435836 +0800
76c1b9
@@ -154,8 +154,8 @@
76c1b9
     cat <
76c1b9
 Provides:         kernel-modules >= ${verrel_dep}${dotvariant}
76c1b9
 Provides:         ${kmod_name}-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
76c1b9
-Requires(post):   /sbin/depmod
76c1b9
-Requires(postun): /sbin/depmod
76c1b9
+Requires(post):   /usr/sbin/depmod
76c1b9
+Requires(postun): /usr/sbin/depmod
76c1b9
 EOF
76c1b9
 
76c1b9
     if [ "yes" != "$nobuildreqs" ]
76c1b9
@@ -183,7 +183,7 @@
76c1b9
 cat <
76c1b9
 %post          -n kmod-${kmod_name}${dashvariant}
76c1b9
 if [ -e "/boot/System.map-${verrel}${dotvariant}" ]; then
76c1b9
-    /sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || :
76c1b9
+    /usr/sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || :
76c1b9
 fi
76c1b9
 
76c1b9
 modules=( \$(find /lib/modules/${verrel}${dotvariant}/extra/${kmod_name} | grep '\.ko$') )
76c1b9
@@ -201,7 +201,7 @@
76c1b9
 cat <
76c1b9
 %postun        -n kmod-${kmod_name}${dashvariant}
76c1b9
 if [ -e "/boot/System.map-${verrel}${dotvariant}" ]; then
76c1b9
-    /sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || :
76c1b9
+    /usr/sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || :
76c1b9
 fi
76c1b9
 
76c1b9
 modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) )