From: Brian Behlendorf Date: Fri, 27 Mar 2015 17:50:09 +0000 (-0700) Subject: LU-7961 build: Fix ldiskfs source autodetect for CentOS 6 X-Git-Tag: 2.8.56~68 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2ad5491d6822bd2e813c4e428aee987e71781713 LU-7961 build: Fix ldiskfs source autodetect for CentOS 6 CentOS 6 installed the kernel source in to the following path which differs slightly from the RHEL version. Expand the search pattern to encompass both the CentOS and RHEL paths. /usr/src/debug/*/linux-2.6.32-x.y.z.el6.centos.plus.x86_64 Change-Id: I0a102148f34d57b94dddfac7819303314c61a376 Signed-off-by: Brian Behlendorf Reviewed-on: http://review.whamcloud.com/19248 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-build-ldiskfs.m4 b/config/lustre-build-ldiskfs.m4 index 2d42764..0e6a2b0 100644 --- a/config/lustre-build-ldiskfs.m4 +++ b/config/lustre-build-ldiskfs.m4 @@ -274,7 +274,7 @@ AS_IF([test -e "$linux_src/fs/ext4/super.c"], [ EXT4_SRC_DIR="$linux_src/fs/ext4" ], [ # Kernel ext source provided by kernel-debuginfo-common package - linux_src=$(ls -1d /usr/src/debug/*/linux-$LINUXRELEASE \ + linux_src=$(ls -1d /usr/src/debug/*/linux-${LINUXRELEASE%.*}* \ 2>/dev/null | tail -1) AS_IF([test -e "$linux_src/fs/ext4/super.c"], [EXT4_SRC_DIR="$linux_src/fs/ext4"],