I am experimenting with flashcache on my Ubuntu and it looks interesting enough to do a long term test with it. I downloaded the sources, compiled them and installed the resulting kernel module. So far so good.
But once I update my Operating System and a new kernel is installed, the module needs to be recompiled for the new kernel and installed in a different path.
I am sure this can be done automatically, but I don't know how. Whenever I update the kernel on my system, serveral modules are automatically compiled (amongst others the virualbox modules).
How can I automatically recompile a manually installed kernel module upon upgrading my kernel package? I basically need some hook that does the
make install stages for flashcache during an