Whamcloud - gitweb
LU-17850 build: prefer LINUXRELEASE over uname -r
authorJian Yu <yujian@whamcloud.com>
Wed, 15 May 2024 04:56:31 +0000 (21:56 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 30 May 2024 00:30:18 +0000 (00:30 +0000)
commit6150faa7e86dc5b174750cfeee1bb1cdb071dbec
tree498c5be0a5a9a14517475791f3e4c5b32a53083a
parent65d437fe5f54db51f41558623f9b87ad502a7c83
LU-17850 build: prefer LINUXRELEASE over uname -r

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.

Lustre-change: https://review.whamcloud.com/55108
Lustre-commit: TBD (from c587c5bdf1c10e4b96e88bb3a0f1972a75dbe9cb)

Test-Parameters: trivial
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: Iaa48027f5ae873e1298695a264db1c351d9eac5c
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55116
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre.spec.in