diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-07-31 12:22:55 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-07-31 12:34:44 +0200 |
commit | 1f406f3e6e954fb08fad915ebf1ec8a9300b21b5 (patch) | |
tree | 51f1e9c7dd1d998c9c70b1dcdef15f6a6cedfb38 /testing/scripts/build-guestkernel | |
parent | 93caf23e1b0aceb8bacd2b1dd4a113f53c5c368b (diff) | |
download | strongswan-1f406f3e6e954fb08fad915ebf1ec8a9300b21b5.tar.bz2 strongswan-1f406f3e6e954fb08fad915ebf1ec8a9300b21b5.tar.xz |
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")
Diffstat (limited to 'testing/scripts/build-guestkernel')
-rwxr-xr-x | testing/scripts/build-guestkernel | 4 |
1 files 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 |