In a container or chroot environment, "uname -r" reports
the host instead of the target kernel version. We should
use the LINUXRELEASE variable which is configured in
config/lustre-build-linux.m4 with the value from UTS_RELEASE.
Change-Id: Iaa48027f5ae873e1298695a264db1c351d9eac5c
Test-Parameters: trivial
Signed-off-by: Jian Yu <yujian@whamcloud.com>
%{!?version: %global version @VERSION@}
# if you want a custom kernel version set it variable with $ver.$arch
-%{!?kver: %global kver %(uname -r)}
+%{!?kver: %global kver @LINUXRELEASE@}
# cut epoch for kmodtool
%define _kver %(echo %{kver} | sed -e 's/^[0-9]*://')
# trust version from kdir - but it can lost 'epoch'