** Changed in: dkms (Ubuntu) Assignee: (unassigned) => Juerg Haefliger (juergh)
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to dkms in Ubuntu. https://bugs.launchpad.net/bugs/2018226 Title: autoinstall fails despite BUILD_EXCLUSIVE Status in dkms package in Ubuntu: Confirmed Bug description: [Impact] Kernel upgrades fail if DKMS packages are currently installed that include BUILD_EXCLUSIVE directives which skip the DKMS build. In this case, the dkms tool incorrectly returns a non-zero exit status. $ sudo /etc/kernel/postinst.d/dkms 6.2.0-20-generic * dkms: running auto installation service for kernel 6.2.0-20-generic Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-r8169-aspm-support-bionic/4/source/dkms.conf) Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf) Sign command: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-r8169-aspm-support-bionic/4/source/dkms.conf) Error! The /var/lib/dkms/oem-ethernet-r8169-aspm-support-bionic/4/6.2.0-20-generic/x86_64/dkms.conf for module oem-ethernet-r8169-aspm-support-bionic 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. [fail] [Test Plan] Install such a DKMS (like [1]), and run: $ sudo /etc/kernel/postinst.d/dkms $(uname -r) This command should return with exit status '0'. [1] http://oem.archive.canonical.com/updates/pool/public/o/oem- ethernet-r8169-aspm-support-bionic-dkms/ [Where problems could occur] This fix changes how DKMS status/results are handled during autoinstall. So problems would only show up if DKMS modules are installed and are being processed (for example during a kernel upgrade or installation). Or if the dkms tool is invoked manually. [Other info] The bug was introduced in upstream dkms version 3.0.9 and fixed in 3.0.11. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/2018226/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp