]> git.proxmox.com Git - mirror_ovs.git/commitdiff
rhel: fix wrong condition check for ovs-kmod-manage.sh, fedora
authorMartin Xu <martinxu9.ovs@gmail.com>
Thu, 20 Sep 2018 19:19:30 +0000 (12:19 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 26 Sep 2018 20:30:17 +0000 (13:30 -0700)
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>
rhel/openvswitch-kmod-fedora.spec.in

index 464d53722783fe8dbd73a7b549e4415b504ac7a0..8d54fd734de8467a1c26c7bce64eaafe9240b462 100644 (file)
@@ -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