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
patchesdirectory 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
- build(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #560
- chore: update project URL mentioned in documentation by @ngie-eign in #567
- docs: fix typos in docs and scripts by @oxyzenQ in #571
- dkms: continue on error by @cshirron in #531
- dkms: resolve in-tree certificates to absolute paths by @spflaumer in #573
- Add configuration option for enabling and disabling module signing by @ArrayBolt3 in #575
- dkms: read_conf: declare control var of a loop as local (fixes #565) by @morgwai in #566
- dkms: Declare variables as local where needed by @scaronni in #576
- Add logo by @scaronni in #577
- Update tests by @scaronni in #580
- Testing changes documentation by @scaronni in #581
- Fix typo by @scaronni in #582
- Deprecate OBSOLETE_BY by @scaronni in #579
- Adjust dkms match command parsing and add a test by @scaronni in #584
- Allow patches, scripts and overrides in /etc/dkms by @scaronni in #583
New Contributors
- @ngie-eign made their first contribution in #567
- @oxyzenQ made their first contribution in #571
- @cshirron made their first contribution in #531
- @spflaumer made their first contribution in #573
- @ArrayBolt3 made their first contribution in #575
- @morgwai made their first contribution in #566
Full Changelog: v3.3.0...v3.4.0