[PATCH] More reliable kernel version detection when using RPM

On some distributions (openSUSE, for example), RPM version and kernel version
do not exactly match. Use the version from /boot/vmlinuz-* if such file is
present in one of RPMs, and fallback to a RPM version number otherwise.

Also, prefer /boot/vmlinuz-* and /boot/initrd-* files when updating bootloader
before the /boot/vmlinuz and /boot/initrd symlinks.

Signed-off-by: Jiri Benc <jbenc@suse.cz>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2872 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed