4. The quicker and dirtier way

In the last section, I wrote how you can build a kernel package that supports and uses yaird to build the initial ramdisk and updates the boot loader config automatically and performs further neccessary steps (like creating symlinks and invoke lilo). However, this method has the impact that you need to install several packages to build only the prerequiste packages, which may become a problem on small systems.

If you want to install as few stuff as possible, you do not install the autotools-dev, tetex-bin, pgp prerequisites (the other prereqs you will need). This saves you a lot since tetex-bin is a big package. Furthermore, you may skip the build and installation of the texi2html, make, kernel-package packages and just build and install yaird from the source package. Then, with the original sarge kernel-package, you build a kernel-package without initrd support with


# make-kpkg --append-to-version=-extraversion --revision=revision kernel-image
(the other steps, including unpacking, configuring etc. are the same as in the previous section). This package can finally be installed with

# dpkg -i linux-image-whatever.deb
but you need to create your initrd manually with

# yaird -o /boot/initrd.img-2.6.14-extraversion 2.6.14-extraversion
and make sure yourself that the neccessary symlinks are correct and your bootloader is updated and (if needed) installed.