Generalized functions so that they may be added to linux_helpers for later use. Functions are no longer kernel-specific and query the guestfs's RPMDB rather than carrying hard-coded strings. As long as a kernel package (like kernel-xen or kernel-ml) has a 'Provides: kernel' or similar, we can use it without knowing its name beforehand.