I was wondering if custom kernel modules that I compile and install via a package will persist through a kernel upgrade. I am trying to install ZFS as kernel module in Ubuntu but the problem is because of license conflicts I cannot make it directly part of the kernel. So I was wondering if I upgrade my kernel from the Ubuntu repo will APT doing anything to "migrate" the old kernel modules over to the new kernel. Because with something like ZFS I need to be very careful because my system would be sitting on ZFS and if I break it the system is unbootable.
Can someone give me some insight to whether I need to take special precautions or not.