From 1f406f3e6e954fb08fad915ebf1ec8a9300b21b5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 31 Jul 2015 12:22:55 +0200 Subject: [PATCH] testing: Fix initial kernel build The directory does not exist yet if the kernel was never built. Fixes: a4a13d0be29b ("testing: Extract and patch each kernel version only once") --- testing/scripts/build-guestkernel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/scripts/build-guestkernel b/testing/scripts/build-guestkernel index 0c38b7b98..a10fb83d2 100755 --- a/testing/scripts/build-guestkernel +++ b/testing/scripts/build-guestkernel @@ -27,7 +27,6 @@ then fi KERNELDIR=$BUILDDIR/$KERNEL -cd $KERNELDIR if [ ! -d "$KERNELDIR" ] then @@ -37,11 +36,12 @@ then if [ $KERNELPATCH ] then log_action "Applying kernel patch" - bzcat ../$KERNELPATCH | patch -p1 >>$LOGFILE 2>&1 + bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1 log_status $? [ $? -eq 0 ] || exit 1 fi fi +cd $KERNELDIR if [ ! -f .config ] then