From: Gu Zheng Date: Mon, 1 Apr 2019 09:19:21 +0000 (+0800) Subject: LU-12141 build: correct the required kernel version for lustre kmod X-Git-Tag: 2.12.1-RC1~22 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F34614%2F2;p=fs%2Flustre-release.git LU-12141 build: correct the required kernel version for lustre kmod Use %kversion rather than %kver when creating preamble for lustre kmods in lustre spec, to avoid *Requires kernel version* mismatch. Test-Parameters: trivial Lustre-change: https://review.whamcloud.com/#/c/34559/ Lustre-commit: fa9922e8f0af3ddadce07aed7d27b00e42f4b487 Change-Id: I9929471abd48b214510bcb499e25793ad120e6d1 Signed-off-by: Gu Zheng Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34614 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre.spec.in b/lustre.spec.in index 75a705c..fe79189 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -186,7 +186,7 @@ Userspace tools and files for the Lustre file system. %define preamble %{expand:%( TMPFILE=`mktemp` cat %{SOURCE1} > $TMPFILE -kver=%{kver} +kver=%{kversion} linuxversion=${kver%%%%-*} linuxrelease=${kver##*-} kabiminor=${linuxrelease%%%%.*}