also only add a kernel entry if we find a corresponding initramfs
uname -m is not always the suffix of the kernel image. Debian uses -686-pae, but uname -m would say i686. This creates an infinite loop in Debian.
Now lives here: https://github.com/cgwalters/poky