Skip to content
Snippets Groups Projects
Commit 527b2cd8 authored by Brian J. Murrell's avatar Brian J. Murrell Committed by Oleg Drokin
Browse files

LU-9731 kmods need to be limited to EL minor release kernel


Due to upstream RHBZ#1467319 kmods are not being populated with the full
kabi information needed to find a matching kernel for the kmod.

Until this is fixed, we need to apply a workaround to achieve the same
result.

Test-Parameters: trivial

Signed-off-by: default avatarBrian J. Murrell <brian.murrell@intel.com>
Change-Id: Ib2eab09719c75be8928eaf607efaa2d814baf5f2
Reviewed-on: https://review.whamcloud.com/28066


Tested-by: Jenkins
Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarMinh Diep <minh.diep@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
parent 1a8c125e
No related branches found
No related tags found
No related merge requests found
......@@ -933,6 +933,16 @@ build_lustre() {
./configure $configure_args $CONFIGURE_FLAGS 2>&1 ||
fatal 1 "Error in configure."
# until we have achieved full kABI compatibility we need to
# restrict the kernel range that can be used to the kernel
# version from the RHEL minor release
# this is supposed to be done for kmods automatically but
# RHBZ#1467319 seems to be getting in the way
local kver=$(find_linux_release)
local linuxversion=${kver%%-*}
local linuxrelease=${kver##*-}
local kabiminor=${linuxrelease%%.*}
echo "Requires: kernel < $linuxversion-$((kabiminor+1)), kernel >= $linuxversion-$((kabiminor))" >> rpm/kmp-lustre.preamble
make rpms 2>&1 ||
fatal 1 "Error building rpms for $BUILD_ARCHS."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment