Control: severity -1 serious
Control: retitle -1 dkms autoinstall fails if headers are not available but a 
module could be built

error logic in dkms autoinstall is flawed:

* install some-dkms
* edit dkms.conf to contain
  AUTOINSTALL="yes"
  BUILD_EXCLUSIVE_ARCH="none"
* install some linux-headers-* package, which triggers dkms autoinstall

Setting up linux-headers-6.1.0-3-amd64 (6.1.8-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-3-amd64:Sign command: 
/usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
Error! The /var/lib/dkms/bbswitch/0.8/6.1.0-3-amd64/x86_64/dkms.conf for module 
bbswitch includes a BUILD_EXCLUSIVE directive which does not match this 
kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at 
/var/lib/dpkg/info/linux-headers-6.1.0-3-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-3-amd64 (--configure):
 installed linux-headers-6.1.0-3-amd64 package post-installation script 
subprocess returned error exit status 1

https://github.com/dell/dkms/issues/302

and we are not yet discussing whether missing headers should be a fatal error 
...


Andreas

Reply via email to