Package: dkms Version: 3.0.3-2 Recently, dkms has started printing useless warning messages like the following:
# dkms status nvidia-current/510.60.02, 5.16.0-6-amd64, x86_64: installed nvidia-current/510.60.02, 5.17.0-1-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD Deprecated feature: REMAKE_INITRD nvidia-current/510.60.02, 5.17.0-3-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD zfs/2.1.4, 5.16.0-6-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD zfs/2.1.4, 5.17.0-1-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD zfs/2.1.4, 5.17.0-3-amd64, x86_64: installedDeprecated feature: REMAKE_INITRD I don't care about deprecated features, especially when a) it's a non-fatal error and doesn't cause the compilation to fail, and b) the warning doesn't actually help me to fix the problem...or tell me whether it is a problem that I can actually fix or not and c) the useless warning makes the useful part of the output unreadable. It doesn't bother to indicate what config file is using this deprecated feature, so there's no way to know what, if anything, to fix, where to fix it, or what package is at fault so I submit a bug report. I don't even know if it's caused by a problem in MY configuration, or if it's in one or more of the -dkms packages that I have installed. I presume the latter is the case, because grepping for REMAKE_INITRD in /etc and /usr/lib/initramfs doesn't return anything. It does appear in /usr/src/zfs-2.1.4/dkms.conf, but not in nvidia-current-510.60.02/dkms.conf. If I edit /usr/sbin/dkms and comment out the code in the deprecated function: deprecated() ( return 0 #exec >&2 #echo -n $"Deprecated feature: " #for s in "$@"; do echo "$s"; done ) then the output is readable and useful again: # dkms status nvidia-current/510.60.02, 5.16.0-6-amd64, x86_64: installed nvidia-current/510.60.02, 5.17.0-1-amd64, x86_64: installed nvidia-current/510.60.02, 5.17.0-3-amd64, x86_64: installed zfs/2.1.4, 5.16.0-6-amd64, x86_64: installed zfs/2.1.4, 5.17.0-1-amd64, x86_64: installed zfs/2.1.4, 5.17.0-3-amd64, x86_64: installed BTW, this deprecated() function is called from the script's read_conf() function. It seems to me that printing a warning message about a deprecated feature in a specific dkms.conf file should be done in the safe_source() function instead - at least there it could print the path to the problematic conf file at the time it is being read, rather than repeat it on every output line whether the deprecated feature is used in a particular -dkms package or not - e.g. as shown above, zfs-dkms has REMAKE_INITRD, while nvidia-kernel-dkms does not, but the warning is printed on the nvidia lines too. craig