My recent post on building Debian kernels misses a subtle but useful point. Namely that of building Debian kernel modules alongside your new kernel. I wanted to run a new kernel with the Ubuntu vmware-player-kernel-source package. I was fumbling around wanting to use module-assistant to do this for me when I stumbled upon on the solution, presented so eloquently by my friend Albert Veli. This gives us a small update to the previous post:

$ wget
$ cd linux-2.6.20/
$ bzcat ../patch- | patch -p1
$ cd ../
$ mv linux-2.6.20 linux-
$ cd linux-
$ make oldconfig
$ fakeroot make-kpkg clean
$ fakeroot make-kpkg --initrd kernel_image
$ sudo dpkg -i ../linux-image-

Next up is installing and building the vmware-player-kernel-source:

$ sudo apt-get install vmware-player-kernel-source
$ cd /usr/src
$ sudo tar xvfj vmware-player-kernel-source.tar.bz2
$ cd -
$ cd linux-
$ fakeroot make-kpkg modules_clean
$ fakeroot make-kpkg modules_image
$ sudo dpkg -i  ../vmware-player-kernel-modules-

You may, of course, need to tweak the file /etc/kernel-pkg.conf, but there are man pages for that.