From a96b8e9cc4cb7032719d821752b9150454b131ad Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 28 Jun 2014 20:00:22 +0000 Subject: [PATCH] scst.spec.in: Follow-up for r5628 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5630 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst.spec.in b/scst.spec.in index cbe10fed9..4dc2ff9b8 100644 --- a/scst.spec.in +++ b/scst.spec.in @@ -91,7 +91,7 @@ rm -f /usr/local/sbin/iscsi-scst-adm rm -f /usr/local/sbin/iscsi-scstd rm -rf /usr/local/include/scst # Remove existing ib_srpt.ko kernel modules -find /lib/modules/$(uname -r) -name ib_srpt.ko -exec rm {} \; +find /lib/modules/%{kver} -name ib_srpt.ko -exec rm {} \; %post /sbin/depmod -a %{kver}