Depmod needs kernel version.
Thomas Dreibholz [Wed, 26 Mar 2014 08:18:05 +0000 (09:18 +0100)]
procprotect.spec

index f74d940..8623541 100644 (file)
@@ -68,7 +68,7 @@ rm -rf $RPM_BUILD_ROOT
 /usr/lib/systemd/system/procprotect.service
 
 %post
-/sbin/depmod -a
+/sbin/depmod -a %{kernel_id}
 /bin/systemctl enable procprotect.service
 
 %postun