dkms postinst should handle missing headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
In the kernel post-install script of DKMS we have the following:
if [ -x /usr/lib/
exec /usr/lib/
fi
if ! _check_kernel_dir $inst_kern ; then
echo "dkms: WARNING: $kernel headers are missing, which may explain the above failures." >&2
echo " please install the $header_pkg package to fix this." >&2
fi
Supposedly the intention is to produce a warning if the kernel-headers are missing (might also cause the overall exit code to be 0). But execution of this script stops and is replaced by the dkms_autoinstaller when using exec. So it probably should be:
if [ -x /usr/lib/
if ! /usr/lib/
if !_check_kernel_dir $inst_kern ; then
...
Changed in dkms (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: patch |
Forgot to mention: the post-inst script is at: /etc/kernel/ postinst. d/dkms.