From: Bernhard Walle Subject: [PATCH] Fix detection of kernel References: bnc#394216 When KDUMP_KERNELVER="kdump" (on ppc64 because there's still a kernel-kdump package) was set, then the script failed to find the kernel. The problem was that it checked for a relocatable kernel, but, of course, the kernel-kdump is not relocatable. Signed-off-by: Bernhard Walle --- init/kdump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/init/kdump +++ b/init/kdump @@ -88,7 +88,7 @@ check_kernel () # if it doesn't contain 'kdump' in the name, # check for relocatability - if [[ $(basename "$kernel") == *kdump* ]] && + if [[ $(basename "$kernel") != *kdump* ]] && ! $KDUMP_IDENTIFY_KERNEL -r $kstr &>/dev/null ; then return 1 fi