Fix logic check for kernel-firmware availability
The kernel-firmware package is not available/necessary on EL7.
Some code was added to exclude trying to install that for EL7
but the logic was inverted.
@@ -36,7 +36,7 @@ yumdownloader lustre-client lustre-client-modules
# other dependencies and the 'kernel = ' at the beggining of the line.
KERNEL_VERSION_AND_RELEASE=\"\$(rpm -qpR lustre-client-modules-* | sed -n -e '/^kernel =/s/.* = //p')\";
-if [[ $(lsb_release -sr) = 7.* ]]; then
+if [[ \$(lsb_release -sr) = 6.* ]]; then
yumdownloader kernel-firmware-\$KERNEL_VERSION_AND_RELEASE
if ! rpm -q \$(rpm -qp kernel-firmware-*.rpm); then
