kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #105984
[Bug 1427175] [NEW] dkms postinst should handle missing headers
Public bug reported:
In the kernel post-install script of DKMS we have the following:
if [ -x /usr/lib/dkms/dkms_autoinstaller ]; then
exec /usr/lib/dkms/dkms_autoinstaller start $inst_kern > /dev/null
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/dkms/dkms_autoinstaller ]; then
if ! /usr/lib/dkms/dkms_autoinstaller start $inst_kern > /dev/null; then
if !_check_kernel_dir $inst_kern ; then
...
** Affects: dkms (Ubuntu)
Importance: Undecided
Status: New
--
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/1427175
Title:
dkms postinst should handle missing headers
Status in dkms package in Ubuntu:
New
Bug description:
In the kernel post-install script of DKMS we have the following:
if [ -x /usr/lib/dkms/dkms_autoinstaller ]; then
exec /usr/lib/dkms/dkms_autoinstaller start $inst_kern > /dev/null
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/dkms/dkms_autoinstaller ]; then
if ! /usr/lib/dkms/dkms_autoinstaller start $inst_kern > /dev/null; then
if !_check_kernel_dir $inst_kern ; then
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1427175/+subscriptions
Follow ups
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-13
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-13
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Ubuntu Foundations Team Bug Bot, 2015-03-12
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-12
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-12
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Alberto Milone, 2015-03-11
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-10
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Alberto Milone, 2015-03-02
-
[Bug 1427175] Re: dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-02
-
[Bug 1427175] [NEW] dkms postinst should handle missing headers
From: Stefan Bader, 2015-03-02
References