From abbcd2f97efd12857f320a7ee4dcfc1a78308681 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 17 Mar 2016 19:39:36 +0100 Subject: [PATCH] Added additional logging for KRNL-5830 --- include/tests_kernel | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/tests_kernel b/include/tests_kernel index 45ea0e71..6363efa0 100644 --- a/include/tests_kernel +++ b/include/tests_kernel @@ -516,14 +516,18 @@ LogText "Result: using ${MYKERNEL} as my kernel version (stripped)" FIND=`ls /boot/vmlinuz* 2> /dev/null` if [ ! "${FIND}" = "" ]; then + LogText "Result: found ${FIND}" # Display kernels, extract version numbers and sort them numeric per column (up to 6 numbers) # Remove generic. and huge. for Slackware machines KERNELS=`ls /boot/vmlinuz* | sed 's/vmlinuz-//' | sed 's/generic.//' | sed 's/huge.//' | sed 's/\.[a-z].*.//g' | sed 's/-[a-z].*.//g' | sed 's./boot/..' | sed 's/-/./g' | sort -n -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 -k6,6 -t \.` + LogText "Output: ${KERNELS}" elif [ ! `ls /boot/kernel* 2> /dev/null` = "" ]; then + LogText "Output: Found a kernel file in /boot" # Display kernels, extract version numbers and sort them numeric per column (up to 6 numbers) # Examples: # /boot/kernel-genkernel-x86_64-3.14.14-gentoo KERNELS=`ls /boot/kernel* | awk -F- '{ if ($2=="genkernel") { print $4 }}' | grep "^[0-9]" | sort -n -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 -k6,6 -t \.` + LogText "Output: ${KERNELS}" else ReportException "${TEST_NO}:2" "Can not find any vmlinuz or kernel files in /boot, which is unexpected" fi