Comment 12 for bug 562832

Revision history for this message
crh (chuebner) wrote : Re: module drbd8 update kernel from 2.6.32-16 to 2.6.32-20

The fix does not work on my freshly kickstarted ubuntu lucid server. The result is the same, dkms complains that no kernel sources are installed despite both generic and server headers are present.

The reason is that dkms tries to use the build link in /lib/modules/2.6.32-21-generic (which does not exist) instead of the one in /lib/modules/2.6.32-21-server (which does and correctly points to the server headers).

The key to the whole issue is the use of uname -r (results in ...-generic) by dkms to determine where the kernel sources are. There either needs to be a fix that creates the correct ...-server reference out of 'uname -r' or a the kernel needs to be renamed ...-server so the build reference does not have to be changed.

Adding a link /lib/modules/2.6.32-21-generic/build -> /usr/src/2.6.32-21-server can serve as a workaround but is not a sustainable solution.

The fix as provided does not work.