summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorGreg Rose <gvrose8192@gmail.com>2021-08-23 09:33:22 -0700
committerWilliam Tu <u9012063@gmail.com>2021-09-03 15:58:41 -0700
commit5c1cc74da6358544b31de75fd9b51e859bb9c461 (patch)
treed91f5d8ebeb20ebf88560d7ee06d6afb0a837403 /rhel
parent944950dccd9006eaf945d5341b5ee37ca80ca44a (diff)
downloadopenvswitch-5c1cc74da6358544b31de75fd9b51e859bb9c461.tar.gz
rhel: Fix dual kernel rpm install for RHEL 8.4
RHEL 8.4 is the first of the RHEL 8.x kernels that has broken ABI so it requires the same sort of fix as we did for several RHEL 7.x kernel that needed two kernel rpms to work for all minor revisions of the baseline kernel module. Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
index eae533736..2dda3865a 100644
--- a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
+++ b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
@@ -24,6 +24,7 @@
# - 3.10.0 major revision 1160 (RHEL 7.9)
# - 4.4.x, x >= 73 (SLES 12 SP3)
# - 4.12.x, x >= 14 (SLES 12 SP4).
+# - 4.18.x major revision 305 (RHEL 8.4)
# It is packaged in the openvswitch kmod RPM and run in the post-install
# scripts.
#
@@ -139,6 +140,13 @@ elif [ "$mainline_major" = "4" ] && [ "$mainline_minor" = "12" ]; then
ver_offset=2
installed_ver="$mainline_patch"
fi
+elif [ "$mainline_major" = "4" ] && [ "$mainline_minor" = "18" ]; then
+ if [ "$major_rev" = "305" ]; then
+ echo "rhel84"
+ comp_ver=9
+ ver_offset=4
+ installed_ver="$minor_rev"
+ fi
fi
if [ X"$ver_offset" = X ]; then