From: Tobias Brunner Date: Fri, 31 Jul 2015 10:22:55 +0000 (+0200) Subject: testing: Fix initial kernel build X-Git-Tag: 5.3.3dr3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f406f3e6e954fb08fad915ebf1ec8a9300b21b5;p=thirdparty%2Fstrongswan.git 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") --- diff --git a/testing/scripts/build-guestkernel b/testing/scripts/build-guestkernel index 0c38b7b984..a10fb83d2b 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