Kernel

Kernel Files

The following is a list of some (all?) of the files modified when a kernel image is installed under debian:
/vmlinux a link to /boot/vmlinuz-?.?.????
/lib/modules/?.?.???? and subdirectories
/boot/vmlinuz-?.?.????
/boot/config-?.?.????
/boot/System.map-?.?.????
/etc/lilo.conf
The MBR is also modified when lilo is run on its config file. (This may also modify something in /boot?)

Kernel Build

Its easiest to compile the kernel under debian as toor:-(

Configure the kernel with:

make menuconfig
This creates a configuration file that I backup to ~toor/kernel

Under debian the following commands can be used to build the kernel:

make-kpkg clean
make-kpkg kernel_image
cd ..
dpkg -c kernel-image-?.?.??_??.??.Custom_i386.deb
Allows you to check everything you expect is in the file (check for your modules)
dpkg --remove kernel-image-?.?.??
If kernel is same version (dpkg -l | grep kernel)
dpkg --install kernel-image-?.?.??_Custom.?_????.deb