I built an akmod-package following these instructions:
http://rpmfusion.org/Packaging/KernelModules/Kmods2
Everything works fine, except for the fact, that the new kmod is built each time a new kernel has been installed - and that means directly after "yum update" finished and not on next reboot after installation. So the new modules are corrupt and won't load due to "version magic" (at least, that's the dmesg output). If I reboot, uninstall the "kmod-*"-package and run "akmods" I'm getting a working kmod build.
I *think*, the problem is this file:
Code:
/etc/kernel/postinst.d/akmods
Inside this script, it's running:
Code:
nohup /usr/sbin/akmods --from-kernel-posttrans --kernels ${1} &> /dev/null &
How can I configure my RPM (spec file) so that this file won't be created, so that the new kmod is only built on boottime (the script responsible for that is: /etc/rc.d/init.d/akmods)?