From: Sandon Van Ness Date: Fri, 30 Jan 2015 21:47:56 +0000 (-0800) Subject: Fixed kernel version string. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=31d454c79a20f3ceee4fd431112dabb00f644e52;p=autobuild-ceph.git Fixed kernel version string. Signed-off-by: Sandon Van Ness --- diff --git a/build-kernel-rpm.sh b/build-kernel-rpm.sh index 8f654b4..aa7fec8 100755 --- a/build-kernel-rpm.sh +++ b/build-kernel-rpm.sh @@ -81,8 +81,7 @@ echo "$0: building..." NCPU=$(grep -c processor /proc/cpuinfo) ionice -c3 nice -n20 make LOCALVERSION=-ceph rpm -j$NCPU "$@" || exit 4 -uname_string=$($HOME/rpmbuild/SPECS/kernel.spec | grep -i ^Provides: | grep kernel-[0-9] | awk -F 'kernel-' '{print $2}') - +uname_string=$(cat $HOME/rpmbuild/BUILD/*/kernel.spec | grep -i ^Provides: | grep kernel-[0-9] | awk -F 'kernel-' '{print $2}') OUTDIR="../out/output/sha1/$REV" OUTDIR_TMP="${OUTDIR}.tmp"