Skip to content

Commit

Permalink
Merge pull request #422 from SamuelePilleri/dev
Browse files Browse the repository at this point in the history
Fixed Ubuntu kernel name
  • Loading branch information
gianlucaborello committed Aug 21, 2015
2 parents b45d63a + 1e035f6 commit 3482b72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build-sysdig-probe-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,15 @@ function ubuntu_build {

if [ $NUM_DEB -eq 3 ]; then

HASH=$(md5sum boot/config-$KERNEL_RELEASE-generic | cut -d' ' -f1)
local KERNEL_FOLDER=$KERNEL_RELEASE
KERNEL_RELEASE=$(ls -1 linux-image-* | grep -E -o "[0-9]{1}\.[0-9]+\.[0-9]+-[0-9]+-[a-z]+")

HASH=$(md5sum boot/config-$KERNEL_RELEASE | cut -d' ' -f1)
HASH_ORIG=$HASH

cd $BASEDIR

export KERNELDIR=$BASEDIR/$KERNEL_RELEASE/$KERNEL_UPDATE/usr/src/linux-headers-$KERNEL_RELEASE-generic
export KERNELDIR=$BASEDIR/$KERNEL_FOLDER/$KERNEL_UPDATE/usr/src/linux-headers-$KERNEL_RELEASE
build_sysdig
fi

Expand Down

0 comments on commit 3482b72

Please sign in to comment.