Whamcloud - gitweb
LU-9731 Limit work-around to EL7 only
[fs/lustre-release.git] / contrib / lbuild / lbuild
index 0cf39ba..8be0cfa 100755 (executable)
@@ -933,16 +933,11 @@ 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
+
+    if type -p apply_kmod_requires; then
+        apply_kmod_requires
+    fi
+
     make rpms 2>&1 ||
         fatal 1 "Error building rpms for $BUILD_ARCHS."