From e15822c82b3888420187eb32db82554266a6f350 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 28 Aug 2013 16:23:21 +0100 Subject: [PATCH] Search for +debug kernels when --kernel option is not used (RHBZ#1002189). --- qemu-sanity-check.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-sanity-check.in b/qemu-sanity-check.in index 712fd8b..dc99786 100644 --- a/qemu-sanity-check.in +++ b/qemu-sanity-check.in @@ -99,7 +99,7 @@ fi # Locate kernel if not specified. if [ -z "$kernel" ]; then - kernel="$(ls -vr /boot/vmlinuz-*.$arch | head -1)" + kernel="$(ls -vr /boot/vmlinuz-*.$arch{,+debug} 2>/dev/null | head -1)" if [ -z "$kernel" ]; then echo "$0: cannot find a Linux kernel in /boot" echo "Choose a kernel to test using --kernel=/path/to/vmlinuz" -- 1.8.3.1