Skip to content

v3.4.0 - New functionality

Latest

Choose a tag to compare

@scaronni scaronni released this 23 Mar 10:08

Configuration option for enabling/disabling module signing

Global configuration in /etc/dkms/framework.conf. Whether to try to sign modules. May be set to true, false, or not_in_chroot. (default: not_in_chroot). Default example:

try_sign_modules=not_in_chroot

Deprecate OBSOLETE_BY

OBSOLETE_BY has been deprecated but left functional. As already noted in the man page since April 2025, BUILD_EXCLUSIVE_KERNEL_MAX is a more general approach to solve the same problem.

Allow patches, scripts and overrides in /etc/dkms

Patches declared with the PATCH[#] directives, can now:

  • Reside in /etc/dkms/<module>/patches/
  • Be overridden by a patch with the same name in /etc/dkms/<module>/patches/
  • As before, the directory structure is preserved, as the whole patches directory is copied.

Scripts declared with POST_ADD, PRE_BUILD, POST_BUILD, PRE_INSTALL, POST_INSTALL and POST_REMOVE can now:

  • Reside in /etc/dkms/<module>/
  • Be overridden by a script with the same name in /etc/dkms/<module>/

Example: overriding a patch

Original:

$ ls -l /usr/src/gasket-1.0/my.patch
-rw-r--r--. 1 root root 2909 Mar  5 01:00 /usr/src/gasket-1.0/my.patch
$ cat /usr/src/gasket-1.0/dkms.conf
PATCH[0]="my.patch"

Override:

$ ls -l /etc/dkms/gasket/patches/my.patch
-rw-r--r--. 1 root root 2828 Mar 16 01:00 /etc/dkms/gasket/patches/my.patch

Example: new local patch

Adding a new local patch that survives across DKMS module upgrades:

$ ls -l /etc/dkms/cxr88/patches/local.patch
-rw-r--r--. 1 root root 2834 Mar 19 01:00 /etc/dkms/cxr88/patches/local.patch
$ cat /etc/dkms/cxr88.conf
PATCH[0]="local.patch"

Example: new post script

Adding a new post script that survives across DKMS module upgrades:

$ ls -l /etc/dkms/nvidia/scripts/reload-nvidia-peermem.sh
-rw-r--r--. 1 root root 2834 Mar 19 01:00 /etc/dkms/nvidia/scripts/reload-nvidia-peermem.sh
$ cat /etc/dkms/nvidia.conf
POST_INSTALL="reload-nvidia-peermem.sh"

What's Changed

New Contributors

Full Changelog: v3.3.0...v3.4.0