Package: dkms Version: 2.3-2 dkms' exit value is unreliable:
# dkms status && echo success aufs, 4.9+20161219, 4.9.0-4-amd64, x86_64: installed aufs, 4.9+20161219, 4.9.0-5-amd64, x86_64: installedError! Could not locate dkms.conf file. File: does not exist. aufs, 4.9+20161219, 4.9.0-6-amd64, x86_64: installed success : : # aptitude upgrade : : Setting up linux-kbuild-4.15 (4.15.11-1~bpo9+1) ... Setting up linux-perf-4.15 (4.15.11-1~bpo9+1) ... Setting up linux-headers-4.15.0-0.bpo.2-common (4.15.11-1~bpo9+1) ... Setting up linux-perf (4.15+91~bpo9+1) ... Setting up linux-image-4.15.0-0.bpo.2-amd64 (4.15.11-1~bpo9+1) ... /etc/kernel-img.conf:2: W: ignoring unknown parameter relative_links /etc/kernel-img.conf:4: W: ignoring unknown parameter do_bootfloppy /etc/kernel-img.conf:5: W: ignoring unknown parameter warn_initrd /etc/kernel/postinst.d/dkms: Error! Could not locate dkms.conf file. File: does not exist. Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built. /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.15.0-0.bpo.2-amd64 I: The initramfs will attempt to resume from /dev/md0p2 : : Regards Harri