DKMS
- DKMS is relatively new and untested compared to the other mechanisms for
- building kernel modules, but if it works for you, it's the easiest.
- DKMS stands for Dynamic Kernel Module Support. It provides
- infrastructure that will automatically rebuild kernel modules when the
- source package or the kernel has been upgraded.
-
- To build OpenAFS kernel modules via DKMS, just install the
- openafs-modules-dkms package. This depends on DKMS and will install it
- as well. The OpenAFS kernel modules should then be built automatically
- and will be installed under updates/dkms in the module tree for your
- kernel.
+ DKMS has some caveats, but it's the easiest method of building modules.
+ It provides infrastructure that will automatically rebuild kernel
+ modules when the source package or the kernel has been upgraded.
+
+ To build OpenAFS kernel modules via DKMS, install the linux-headers
+ package corresponding to the version of the kernel that you have
+ installed and then install the openafs-modules-dkms package. This
+ depends on DKMS and will install it as well. The OpenAFS kernel modules
+ should then be built automatically and will be installed under
+ updates/dkms in the module tree for your kernel.
+
+ Please note that DKMS will only build modules for kernels that have the
+ Linux headers installed. When you upgrade your kernel, you need to
+ install the new linux-headers package at the same time, or you'll end up
+ without an OpenAFS module for the new kernel. If you're using the
+ tracking packages for the kernel (linux-image-2.6-686 or the like), also
+ install the tracking package for the kernel headers
+ (linux-headers-2.6-686 in that example).
module-assistant
correctly so that it matches the name of the kernel-image package and
installs its modules into the correct directory.
+ If you have ever previously built a module with module-assistant, always
+ run:
+
+ module-assistant clean openafs
+
+ before building a new module. module-assistant doesn't always properly
+ clean up after itself, and the mix of files from old and new versions of
+ OpenAFS can cause serious problems with the resulting module.
+
make-kpkg
This method may work better than module-assistant if you're also
+openafs (1.6.0~pre1-2) UNRELEASED; urgency=low
+
+ * In README.modules, document the need to install the Linux headers
+ package in the DKMS instructions and the need for module-assistant
+ clean openafs in the module-assitant instructions. (Closes: #606235)
+
+ -- Russ Allbery <rra@debian.org> Thu, 06 Jan 2011 20:03:48 -0800
+
openafs (1.6.0~pre1-1) experimental; urgency=low
* New upstream prerelease.