summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorMartin Xu <martinxu9.ovs@gmail.com>2018-09-20 12:19:30 -0700
committerBen Pfaff <blp@ovn.org>2018-09-26 13:30:17 -0700
commit24ea309555383162cb858c8a78eaf4e06c68cfc8 (patch)
tree80c07833538185697ffd3cd52ca7fc90a5890d02 /rhel
parent2f114c7e11679bcc5c43bc64286c54be61981894 (diff)
downloadopenvswitch-24ea309555383162cb858c8a78eaf4e06c68cfc8.tar.gz
rhel: fix wrong condition check for ovs-kmod-manage.sh, fedora
In post-install in kmod fedora spec file, the variables storing different parts of kernel version numbers are renamed. The condition check to run ovs-kmod-manage.sh for RHEL 7.2 and 7.4 uses the older variables. Fixes: c3570519ecaf (rhel: add 4.4 kernel in kmod build with mulitple versions, fedora) Signed-off-by: Martin Xu <martinxu9.ovs@gmail.com> CC: Greg Rose <gvrose8192@gmail.com> CC: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/openvswitch-kmod-fedora.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhel/openvswitch-kmod-fedora.spec.in b/rhel/openvswitch-kmod-fedora.spec.in
index 464d53722..8d54fd734 100644
--- a/rhel/openvswitch-kmod-fedora.spec.in
+++ b/rhel/openvswitch-kmod-fedora.spec.in
@@ -86,7 +86,7 @@ IFS='.\|-' read mainline_major mainline_minor mainline_patch major_rev \
# echo mainline_major=$mainline_major mainline_minor=$mainline_minor \
# mainline_patch=$mainline_patch major_rev=$major_rev minor_rev=$minor_rev
if [ "$mainline_major" = "3" ] && [ "$mainline_minor" = "10" ]; then
- if [ "$installed_major" = "327" ] || [ "$installed_major" = "693" ]; then
+ if [ "$major_rev" = "327" ] || [ "$major_rev" = "693" ]; then
# For RHEL 7.2 and 7.4
if [ -x "%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh" ]; then
%{_datadir}/openvswitch/scripts/ovs-kmod-manage.sh